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
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
1 deletions
-
common.props
-
modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.EntityFrameworkCore/EasyAbp/EShop/Orders/Orders/OrderRepository.cs
|
|
@ -1,7 +1,7 @@ |
|
|
<Project> |
|
|
<Project> |
|
|
<PropertyGroup> |
|
|
<PropertyGroup> |
|
|
<LangVersion>latest</LangVersion> |
|
|
<LangVersion>latest</LangVersion> |
|
|
<Version>4.0.0-preview.4</Version> |
|
|
<Version>4.0.0-preview.5</Version> |
|
|
<NoWarn>$(NoWarn);CS1591</NoWarn> |
|
|
<NoWarn>$(NoWarn);CS1591</NoWarn> |
|
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> |
|
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> |
|
|
<Authors>EasyAbp Team</Authors> |
|
|
<Authors>EasyAbp Team</Authors> |
|
|
|
|
|
@ -20,6 +20,7 @@ namespace EasyAbp.EShop.Orders.Orders |
|
|
{ |
|
|
{ |
|
|
return (await base.WithDetailsAsync()) |
|
|
return (await base.WithDetailsAsync()) |
|
|
.Include(x => x.OrderLines) |
|
|
.Include(x => x.OrderLines) |
|
|
|
|
|
.Include(x => x.OrderDiscounts) |
|
|
.Include(x => x.OrderExtraFees); |
|
|
.Include(x => x.OrderExtraFees); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|