|
|
|
@ -29,6 +29,7 @@ public class EfCoreAuditLogRepository : EfCoreRepository<IAuditLoggingDbContext, |
|
|
|
DateTime? endTime = null, |
|
|
|
string httpMethod = null, |
|
|
|
string url = null, |
|
|
|
string clientId = null, |
|
|
|
Guid? userId = null, |
|
|
|
string userName = null, |
|
|
|
string applicationName = null, |
|
|
|
@ -46,6 +47,7 @@ public class EfCoreAuditLogRepository : EfCoreRepository<IAuditLoggingDbContext, |
|
|
|
endTime, |
|
|
|
httpMethod, |
|
|
|
url, |
|
|
|
clientId, |
|
|
|
userId, |
|
|
|
userName, |
|
|
|
applicationName, |
|
|
|
@ -71,6 +73,7 @@ public class EfCoreAuditLogRepository : EfCoreRepository<IAuditLoggingDbContext, |
|
|
|
DateTime? endTime = null, |
|
|
|
string httpMethod = null, |
|
|
|
string url = null, |
|
|
|
string clientId = null, |
|
|
|
Guid? userId = null, |
|
|
|
string userName = null, |
|
|
|
string applicationName = null, |
|
|
|
@ -87,6 +90,7 @@ public class EfCoreAuditLogRepository : EfCoreRepository<IAuditLoggingDbContext, |
|
|
|
endTime, |
|
|
|
httpMethod, |
|
|
|
url, |
|
|
|
clientId, |
|
|
|
userId, |
|
|
|
userName, |
|
|
|
applicationName, |
|
|
|
@ -108,6 +112,7 @@ public class EfCoreAuditLogRepository : EfCoreRepository<IAuditLoggingDbContext, |
|
|
|
DateTime? endTime = null, |
|
|
|
string httpMethod = null, |
|
|
|
string url = null, |
|
|
|
string clientId = null, |
|
|
|
Guid? userId = null, |
|
|
|
string userName = null, |
|
|
|
string applicationName = null, |
|
|
|
@ -128,6 +133,7 @@ public class EfCoreAuditLogRepository : EfCoreRepository<IAuditLoggingDbContext, |
|
|
|
.WhereIf(hasException.HasValue && !hasException.Value, auditLog => auditLog.Exceptions == null || auditLog.Exceptions == "") |
|
|
|
.WhereIf(!httpMethod.IsNullOrEmpty(), auditLog => auditLog.HttpMethod == httpMethod) |
|
|
|
.WhereIf(!url.IsNullOrEmpty(), auditLog => auditLog.Url != null && auditLog.Url.Contains(url)) |
|
|
|
.WhereIf(!clientId.IsNullOrEmpty(), auditLog => auditLog.ClientId == clientId) |
|
|
|
.WhereIf(userId != null, auditLog => auditLog.UserId == userId) |
|
|
|
.WhereIf(!userName.IsNullOrEmpty(), auditLog => auditLog.UserName == userName) |
|
|
|
.WhereIf(!applicationName.IsNullOrEmpty(), auditLog => auditLog.ApplicationName == applicationName) |
|
|
|
@ -159,7 +165,7 @@ public class EfCoreAuditLogRepository : EfCoreRepository<IAuditLoggingDbContext, |
|
|
|
return GetQueryable().IncludeDetails(); |
|
|
|
} |
|
|
|
|
|
|
|
public override async Task<IQueryable<AuditLog>> WithDetailsAsync() |
|
|
|
public async override Task<IQueryable<AuditLog>> WithDetailsAsync() |
|
|
|
{ |
|
|
|
return (await GetQueryableAsync()).IncludeDetails(); |
|
|
|
} |
|
|
|
|