@ -3,6 +3,5 @@
public static class OrderingServiceRemoteServiceConsts
{
public const string RemoteServiceName = "Ordering";
public const int Top10 = 10;
}
@ -5,5 +5,5 @@ public static class OrderConstants
public const int OrderPaymentMethodNameMaxLength = 128;
public const int OrderStatusNameMaxLength = 256;
public const int PaymentStatusMaxLength = 256;
@ -9,7 +9,6 @@
<ItemGroup>
<ProjectReference Include="..\EShopOnAbp.OrderingService.Domain\EShopOnAbp.OrderingService.Domain.csproj" />
<ProjectReference Include="..\EShopOnAbp.OrderingService.Application.Contracts\EShopOnAbp.OrderingService.Application.Contracts.csproj" />
<PackageReference Include="Volo.Abp.EntityFrameworkCore.PostgreSql" Version="5.1.2" />
</ItemGroup>
@ -60,7 +60,7 @@ public class EfCoreOrderRepository : EfCoreRepository<OrderingServiceDbContext,
.Select(o => o.ToList())
.ToListAsync())
.SelectMany(t => t)
.Take(OrderingServiceRemoteServiceConsts.Top10)
.Take(OrderConstants.Top10)
.ToList();