mirror of https://github.com/abpframework/abp.git
6 changed files with 44 additions and 3 deletions
@ -0,0 +1,26 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using Microsoft.EntityFrameworkCore; |
||||
|
|
||||
|
namespace Volo.Abp.AuditLogging |
||||
|
{ |
||||
|
public static class AbpAuditLoggingEfCoreQueryableExtensions |
||||
|
{ |
||||
|
public static IQueryable<AuditLog> IncludeDetails( |
||||
|
this IQueryable<AuditLog> queryable, |
||||
|
bool include = true) |
||||
|
{ |
||||
|
if (!include) |
||||
|
{ |
||||
|
return queryable; |
||||
|
} |
||||
|
|
||||
|
return queryable |
||||
|
.Include(x => x.Actions) |
||||
|
.Include(x => x.EntityChanges); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue