From dfe025a28b1a3c05a67392d89e39c21804d43afd Mon Sep 17 00:00:00 2001 From: gdlcf88 Date: Mon, 17 Apr 2023 17:34:09 +0800 Subject: [PATCH] Add the missing OrderDiscounts EF Core relationship loading --- common.props | 2 +- .../EasyAbp/EShop/Orders/Orders/OrderRepository.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/common.props b/common.props index 11d1cd2e..cf83a649 100644 --- a/common.props +++ b/common.props @@ -1,7 +1,7 @@ latest - 4.0.0-preview.4 + 4.0.0-preview.5 $(NoWarn);CS1591 true EasyAbp Team diff --git a/modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.EntityFrameworkCore/EasyAbp/EShop/Orders/Orders/OrderRepository.cs b/modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.EntityFrameworkCore/EasyAbp/EShop/Orders/Orders/OrderRepository.cs index e4e2ae53..24244aa0 100644 --- a/modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.EntityFrameworkCore/EasyAbp/EShop/Orders/Orders/OrderRepository.cs +++ b/modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.EntityFrameworkCore/EasyAbp/EShop/Orders/Orders/OrderRepository.cs @@ -20,6 +20,7 @@ namespace EasyAbp.EShop.Orders.Orders { return (await base.WithDetailsAsync()) .Include(x => x.OrderLines) + .Include(x => x.OrderDiscounts) .Include(x => x.OrderExtraFees); }