Show / Hide Table of Contents

Class EfCoreAuditLogRepository

Inheritance
object
BasicRepositoryBase<AuditLog>
RepositoryBase<AuditLog>
EfCoreRepository<IAuditLoggingDbContext, AuditLog>
EfCoreRepository<IAuditLoggingDbContext, AuditLog, Guid>
EfCoreAuditLogRepository
Implements
IServiceProviderAccessor
IUnitOfWorkEnabled
IUnitOfWorkManagerAccessor
IEfCoreRepository<AuditLog, Guid>
IEfCoreRepository<AuditLog>
IRepository<AuditLog, Guid>
ISupportsExplicitLoading<AuditLog>
IAuditLogRepository
IRepository<AuditLog, Guid>
IRepository<AuditLog>
IReadOnlyRepository<AuditLog, Guid>
IReadOnlyRepository<AuditLog>
IBasicRepository<AuditLog, Guid>
IBasicRepository<AuditLog>
IReadOnlyBasicRepository<AuditLog, Guid>
IReadOnlyBasicRepository<AuditLog>
IRepository
Inherited Members
EfCoreRepository<IAuditLoggingDbContext, AuditLog, Guid>.GetAsync(Guid, bool, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog, Guid>.FindAsync(Guid, bool, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog, Guid>.DeleteAsync(Guid, bool, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog, Guid>.DeleteManyAsync(IEnumerable<Guid>, bool, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.GetDbContextAsync()
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.GetDbSetAsync()
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.GetDbConnectionAsync()
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.GetDbTransactionAsync()
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.InsertAsync(AuditLog, bool, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.InsertManyAsync(IEnumerable<AuditLog>, bool, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.UpdateAsync(AuditLog, bool, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.UpdateManyAsync(IEnumerable<AuditLog>, bool, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.DeleteAsync(AuditLog, bool, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.DeleteManyAsync(IEnumerable<AuditLog>, bool, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.GetListAsync(bool, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.GetListAsync(Expression<Func<AuditLog, bool>>, bool, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.GetCountAsync(CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.GetPagedListAsync(int, int, string, bool, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.GetQueryable()
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.GetQueryableAsync()
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.SaveChangesAsync(CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.FindAsync(Expression<Func<AuditLog, bool>>, bool, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.DeleteAsync(Expression<Func<AuditLog, bool>>, bool, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.DeleteDirectAsync(Expression<Func<AuditLog, bool>>, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.EnsureCollectionLoadedAsync<TProperty>(AuditLog, Expression<Func<AuditLog, IEnumerable<TProperty>>>, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.EnsurePropertyLoadedAsync<TProperty>(AuditLog, Expression<Func<AuditLog, TProperty>>, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.WithDetails()
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.WithDetailsAsync()
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.WithDetails(params Expression<Func<AuditLog, object>>[])
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.WithDetailsAsync(params Expression<Func<AuditLog, object>>[])
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.CheckAndSetId(AuditLog)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.TrySetGuidId(IEntity<Guid>)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.DbContext
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.DbSet
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.AbpEntityOptions
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.GuidGenerator
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.BulkOperationProvider
RepositoryBase<AuditLog>.WithDetails(params Expression<Func<AuditLog, object>>[])
RepositoryBase<AuditLog>.WithDetailsAsync(params Expression<Func<AuditLog, object>>[])
RepositoryBase<AuditLog>.GetQueryable()
RepositoryBase<AuditLog>.GetQueryableAsync()
RepositoryBase<AuditLog>.FindAsync(Expression<Func<AuditLog, bool>>, bool, CancellationToken)
RepositoryBase<AuditLog>.GetAsync(Expression<Func<AuditLog, bool>>, bool, CancellationToken)
RepositoryBase<AuditLog>.DeleteAsync(Expression<Func<AuditLog, bool>>, bool, CancellationToken)
RepositoryBase<AuditLog>.DeleteDirectAsync(Expression<Func<AuditLog, bool>>, CancellationToken)
RepositoryBase<AuditLog>.ApplyDataFilters<TQueryable>(TQueryable)
RepositoryBase<AuditLog>.ApplyDataFilters<TQueryable, TOtherEntity>(TQueryable)
BasicRepositoryBase<AuditLog>.InsertAsync(AuditLog, bool, CancellationToken)
BasicRepositoryBase<AuditLog>.InsertManyAsync(IEnumerable<AuditLog>, bool, CancellationToken)
BasicRepositoryBase<AuditLog>.SaveChangesAsync(CancellationToken)
BasicRepositoryBase<AuditLog>.UpdateAsync(AuditLog, bool, CancellationToken)
BasicRepositoryBase<AuditLog>.UpdateManyAsync(IEnumerable<AuditLog>, bool, CancellationToken)
BasicRepositoryBase<AuditLog>.DeleteAsync(AuditLog, bool, CancellationToken)
BasicRepositoryBase<AuditLog>.DeleteManyAsync(IEnumerable<AuditLog>, bool, CancellationToken)
BasicRepositoryBase<AuditLog>.GetListAsync(bool, CancellationToken)
BasicRepositoryBase<AuditLog>.GetListAsync(Expression<Func<AuditLog, bool>>, bool, CancellationToken)
BasicRepositoryBase<AuditLog>.GetCountAsync(CancellationToken)
BasicRepositoryBase<AuditLog>.GetPagedListAsync(int, int, string, bool, CancellationToken)
BasicRepositoryBase<AuditLog>.GetCancellationToken(CancellationToken)
BasicRepositoryBase<AuditLog>.ShouldTrackingEntityChange()
BasicRepositoryBase<AuditLog>.LazyServiceProvider
BasicRepositoryBase<AuditLog>.ServiceProvider
BasicRepositoryBase<AuditLog>.DataFilter
BasicRepositoryBase<AuditLog>.CurrentTenant
BasicRepositoryBase<AuditLog>.AsyncExecuter
BasicRepositoryBase<AuditLog>.UnitOfWorkManager
BasicRepositoryBase<AuditLog>.CancellationTokenProvider
BasicRepositoryBase<AuditLog>.LoggerFactory
BasicRepositoryBase<AuditLog>.Logger
BasicRepositoryBase<AuditLog>.EntityChangeTrackingProvider
BasicRepositoryBase<AuditLog>.IsChangeTrackingEnabled
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.AuditLogging.EntityFrameworkCore
Assembly: Volo.Abp.AuditLogging.EntityFrameworkCore.dll
Syntax
public class EfCoreAuditLogRepository : EfCoreRepository<IAuditLoggingDbContext, AuditLog, Guid>, IServiceProviderAccessor, IUnitOfWorkEnabled, IUnitOfWorkManagerAccessor, IEfCoreRepository<AuditLog, Guid>, IEfCoreRepository<AuditLog>, IRepository<AuditLog, Guid>, ISupportsExplicitLoading<AuditLog>, IAuditLogRepository, IRepository<AuditLog, Guid>, IRepository<AuditLog>, IReadOnlyRepository<AuditLog, Guid>, IReadOnlyRepository<AuditLog>, IBasicRepository<AuditLog, Guid>, IBasicRepository<AuditLog>, IReadOnlyBasicRepository<AuditLog, Guid>, IReadOnlyBasicRepository<AuditLog>, IRepository

Constructors

EfCoreAuditLogRepository(IDbContextProvider<IAuditLoggingDbContext>)

Declaration
public EfCoreAuditLogRepository(IDbContextProvider<IAuditLoggingDbContext> dbContextProvider)
Parameters
Type Name Description
IDbContextProvider<IAuditLoggingDbContext> dbContextProvider

Methods

GetAverageExecutionDurationPerDayAsync(DateTime, DateTime, CancellationToken)

Declaration
public virtual Task<Dictionary<DateTime, double>> GetAverageExecutionDurationPerDayAsync(DateTime startDate, DateTime endDate, CancellationToken cancellationToken = default)
Parameters
Type Name Description
DateTime startDate
DateTime endDate
CancellationToken cancellationToken
Returns
Type Description
Task<Dictionary<DateTime, double>>

GetCountAsync(DateTime?, DateTime?, string, string, string, Guid?, string, string, string, string, int?, int?, bool?, HttpStatusCode?, CancellationToken)

Declaration
public virtual Task<long> GetCountAsync(DateTime? startTime = null, DateTime? endTime = null, string httpMethod = null, string url = null, string clientId = null, Guid? userId = null, string userName = null, string applicationName = null, string clientIpAddress = null, string correlationId = null, int? maxExecutionDuration = null, int? minExecutionDuration = null, bool? hasException = null, HttpStatusCode? httpStatusCode = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
DateTime? startTime
DateTime? endTime
string httpMethod
string url
string clientId
Guid? userId
string userName
string applicationName
string clientIpAddress
string correlationId
int? maxExecutionDuration
int? minExecutionDuration
bool? hasException
HttpStatusCode? httpStatusCode
CancellationToken cancellationToken
Returns
Type Description
Task<long>

GetEntityChange(Guid, CancellationToken)

Declaration
public virtual Task<EntityChange> GetEntityChange(Guid entityChangeId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
Guid entityChangeId
CancellationToken cancellationToken
Returns
Type Description
Task<EntityChange>

GetEntityChangeCountAsync(Guid?, DateTime?, DateTime?, EntityChangeType?, string, string, CancellationToken)

Declaration
public virtual Task<long> GetEntityChangeCountAsync(Guid? auditLogId = null, DateTime? startTime = null, DateTime? endTime = null, EntityChangeType? changeType = null, string entityId = null, string entityTypeFullName = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
Guid? auditLogId
DateTime? startTime
DateTime? endTime
EntityChangeType? changeType
string entityId
string entityTypeFullName
CancellationToken cancellationToken
Returns
Type Description
Task<long>

GetEntityChangeListAsync(string, int, int, Guid?, DateTime?, DateTime?, EntityChangeType?, string, string, bool, CancellationToken)

Declaration
public virtual Task<List<EntityChange>> GetEntityChangeListAsync(string sorting = null, int maxResultCount = 50, int skipCount = 0, Guid? auditLogId = null, DateTime? startTime = null, DateTime? endTime = null, EntityChangeType? changeType = null, string entityId = null, string entityTypeFullName = null, bool includeDetails = false, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string sorting
int maxResultCount
int skipCount
Guid? auditLogId
DateTime? startTime
DateTime? endTime
EntityChangeType? changeType
string entityId
string entityTypeFullName
bool includeDetails
CancellationToken cancellationToken
Returns
Type Description
Task<List<EntityChange>>

GetEntityChangeListQueryAsync(Guid?, DateTime?, DateTime?, EntityChangeType?, string, string, bool)

Declaration
protected virtual Task<IQueryable<EntityChange>> GetEntityChangeListQueryAsync(Guid? auditLogId = null, DateTime? startTime = null, DateTime? endTime = null, EntityChangeType? changeType = null, string entityId = null, string entityTypeFullName = null, bool includeDetails = false)
Parameters
Type Name Description
Guid? auditLogId
DateTime? startTime
DateTime? endTime
EntityChangeType? changeType
string entityId
string entityTypeFullName
bool includeDetails
Returns
Type Description
Task<IQueryable<EntityChange>>

GetEntityChangeWithUsernameAsync(Guid, CancellationToken)

Declaration
public virtual Task<EntityChangeWithUsername> GetEntityChangeWithUsernameAsync(Guid entityChangeId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
Guid entityChangeId
CancellationToken cancellationToken
Returns
Type Description
Task<EntityChangeWithUsername>

GetEntityChangesWithUsernameAsync(string, string, CancellationToken)

Declaration
public virtual Task<List<EntityChangeWithUsername>> GetEntityChangesWithUsernameAsync(string entityId, string entityTypeFullName, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string entityId
string entityTypeFullName
CancellationToken cancellationToken
Returns
Type Description
Task<List<EntityChangeWithUsername>>

GetListAsync(string, int, int, DateTime?, DateTime?, string, string, string, Guid?, string, string, string, string, int?, int?, bool?, HttpStatusCode?, bool, CancellationToken)

Declaration
public virtual Task<List<AuditLog>> GetListAsync(string sorting = null, int maxResultCount = 50, int skipCount = 0, DateTime? startTime = null, DateTime? endTime = null, string httpMethod = null, string url = null, string clientId = null, Guid? userId = null, string userName = null, string applicationName = null, string clientIpAddress = null, string correlationId = null, int? maxExecutionDuration = null, int? minExecutionDuration = null, bool? hasException = null, HttpStatusCode? httpStatusCode = null, bool includeDetails = false, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string sorting
int maxResultCount
int skipCount
DateTime? startTime
DateTime? endTime
string httpMethod
string url
string clientId
Guid? userId
string userName
string applicationName
string clientIpAddress
string correlationId
int? maxExecutionDuration
int? minExecutionDuration
bool? hasException
HttpStatusCode? httpStatusCode
bool includeDetails
CancellationToken cancellationToken
Returns
Type Description
Task<List<AuditLog>>

GetListQueryAsync(DateTime?, DateTime?, string, string, string, Guid?, string, string, string, string, int?, int?, bool?, HttpStatusCode?, bool)

Declaration
protected virtual Task<IQueryable<AuditLog>> GetListQueryAsync(DateTime? startTime = null, DateTime? endTime = null, string httpMethod = null, string url = null, string clientId = null, Guid? userId = null, string userName = null, string applicationName = null, string clientIpAddress = null, string correlationId = null, int? maxExecutionDuration = null, int? minExecutionDuration = null, bool? hasException = null, HttpStatusCode? httpStatusCode = null, bool includeDetails = false)
Parameters
Type Name Description
DateTime? startTime
DateTime? endTime
string httpMethod
string url
string clientId
Guid? userId
string userName
string applicationName
string clientIpAddress
string correlationId
int? maxExecutionDuration
int? minExecutionDuration
bool? hasException
HttpStatusCode? httpStatusCode
bool includeDetails
Returns
Type Description
Task<IQueryable<AuditLog>>

WithDetails()

Declaration
[Obsolete("Use WithDetailsAsync method.")]
public override IQueryable<AuditLog> WithDetails()
Returns
Type Description
IQueryable<AuditLog>
Overrides
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.Abp.AuditLogging.EntityFrameworkCore.IAuditLoggingDbContext, Volo.Abp.AuditLogging.AuditLog>.WithDetails()

WithDetailsAsync()

Declaration
public override Task<IQueryable<AuditLog>> WithDetailsAsync()
Returns
Type Description
Task<IQueryable<AuditLog>>
Overrides
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.Abp.AuditLogging.EntityFrameworkCore.IAuditLoggingDbContext, Volo.Abp.AuditLogging.AuditLog>.WithDetailsAsync()

Implements

IServiceProviderAccessor
IUnitOfWorkEnabled
IUnitOfWorkManagerAccessor
IEfCoreRepository<TEntity, TKey>
IEfCoreRepository<TEntity>
IRepository<TEntity, TKey>
ISupportsExplicitLoading<TEntity>
IAuditLogRepository
IRepository<TEntity, TKey>
IRepository<TEntity>
IReadOnlyRepository<TEntity, TKey>
IReadOnlyRepository<TEntity>
IBasicRepository<TEntity, TKey>
IBasicRepository<TEntity>
IReadOnlyBasicRepository<TEntity, TKey>
IReadOnlyBasicRepository<TEntity>
IRepository

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform