replace counter by specific query to avoid load each items in memory (#611)
* replace counter by specific query to avoid load each items in memory * Create IBasketQueryService
This commit is contained in:
9
src/ApplicationCore/Interfaces/IBasketQueryService.cs
Normal file
9
src/ApplicationCore/Interfaces/IBasketQueryService.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
|
||||
{
|
||||
public interface IBasketQueryService
|
||||
{
|
||||
Task<int> CountTotalBasketItems(string username);
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
using Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
|
||||
{
|
||||
|
||||
//public interface IOrderRepository : IAsyncRepository<Order>
|
||||
//{
|
||||
// Task<Order> GetByIdWithItemsAsync(int id);
|
||||
//}
|
||||
}
|
||||
Reference in New Issue
Block a user