mirror of https://github.com/abpframework/abp.git
5 changed files with 47 additions and 20 deletions
@ -0,0 +1,14 @@ |
|||
using System.Linq; |
|||
using Microsoft.EntityFrameworkCore; |
|||
using Volo.Docs.Documents; |
|||
|
|||
namespace Volo.Docs.EntityFrameworkCore |
|||
{ |
|||
public static class DocsEfCoreQueryableExtensions |
|||
{ |
|||
public static IQueryable<Document> IncludeDetails(this IQueryable<Document> queryable, bool include = true) |
|||
{ |
|||
return !include ? queryable : queryable.Include(x => x.Contributors); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue