Browse Source

Merge pull request #258 from EasyAbp/fix-order-ef-including

Add the missing OrderDiscounts EF Core relationship loading
pull/259/head 4.0.0-preview.5
Super 3 years ago
committed by GitHub
parent
commit
a91a3a14a0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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