Browse Source

Add the missing OrderDiscounts EF Core relationship loading

pull/258/head
gdlcf88 4 years ago
parent
commit
dfe025a28b
  1. 2
      common.props
  2. 1
      modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.EntityFrameworkCore/EasyAbp/EShop/Orders/Orders/OrderRepository.cs

2
common.props

@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>4.0.0-preview.4</Version>
<Version>4.0.0-preview.5</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>

1
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);
}

Loading…
Cancel
Save