Show / Hide Table of Contents

Class EfCoreAuditLogRepository

Inheritance
System.Object
EfCoreRepository<IAuditLoggingDbContext, AuditLog>
EfCoreRepository<IAuditLoggingDbContext, AuditLog, Guid>
EfCoreAuditLogRepository
Implements
IAsyncEnumerable<AuditLog>
IEfCoreRepository<AuditLog, Guid>
IEfCoreRepository<AuditLog>
IRepository<AuditLog>
IRepository<AuditLog, Guid>
ISupportsExplicitLoading<AuditLog, Guid>
IAuditLogRepository
IRepository<AuditLog, Guid>
Inherited Members
EfCoreRepository<IAuditLoggingDbContext, AuditLog, Guid>.GetAsync(Guid, Boolean, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog, Guid>.FindAsync(Guid, Boolean, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog, Guid>.DeleteAsync(Guid, Boolean, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.DbSet
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.DbContext
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.AbpEntityOptions
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.GuidGenerator
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.InsertAsync(AuditLog, Boolean, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.UpdateAsync(AuditLog, Boolean, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.DeleteAsync(AuditLog, Boolean, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.GetListAsync(Boolean, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.GetCountAsync(CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.GetPagedListAsync(Int32, Int32, String, Boolean, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.GetQueryable()
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.Abp.AuditLogging.EntityFrameworkCore.IAuditLoggingDbContext, Volo.Abp.AuditLogging.AuditLog>.FindAsync(Expression<>, System.Boolean, CancellationToken)
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.Abp.AuditLogging.EntityFrameworkCore.IAuditLoggingDbContext, Volo.Abp.AuditLogging.AuditLog>.DeleteAsync(Expression<>, System.Boolean, CancellationToken)
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.Abp.AuditLogging.EntityFrameworkCore.IAuditLoggingDbContext, Volo.Abp.AuditLogging.AuditLog>.EnsureCollectionLoadedAsync<TProperty>(Volo.Abp.AuditLogging.AuditLog, Expression<>, CancellationToken)
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.Abp.AuditLogging.EntityFrameworkCore.IAuditLoggingDbContext, Volo.Abp.AuditLogging.AuditLog>.EnsurePropertyLoadedAsync<TProperty>(Volo.Abp.AuditLogging.AuditLog, Expression<>, CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.WithDetails()
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.Abp.AuditLogging.EntityFrameworkCore.IAuditLoggingDbContext, Volo.Abp.AuditLogging.AuditLog>.WithDetails(Expression<>[])
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.GetAsyncEnumerator(CancellationToken)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.CheckAndSetId(AuditLog)
EfCoreRepository<IAuditLoggingDbContext, AuditLog>.TrySetGuidId(IEntity<Guid>)
Namespace: Volo.Abp.AuditLogging.EntityFrameworkCore
Assembly: Volo.Abp.AuditLogging.EntityFrameworkCore.dll
Syntax
public class EfCoreAuditLogRepository : EfCoreRepository<IAuditLoggingDbContext, AuditLog, Guid>, IAsyncEnumerable<AuditLog>, IEfCoreRepository<AuditLog, Guid>, IEfCoreRepository<AuditLog>, IRepository<AuditLog>, IRepository<AuditLog, Guid>, ISupportsExplicitLoading<AuditLog, Guid>, IAuditLogRepository, IRepository<AuditLog, Guid>

Constructors

EfCoreAuditLogRepository(IDbContextProvider<IAuditLoggingDbContext>)

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

Methods

GetAverageExecutionDurationPerDayAsync(DateTime, DateTime)

Declaration
public virtual Task<Dictionary<DateTime, double>> GetAverageExecutionDurationPerDayAsync(DateTime startDate, DateTime endDate)
Parameters
Type Name Description
DateTime startDate
DateTime endDate
Returns
Type Description
Task<Dictionary<DateTime, System.Double>>

GetCountAsync(Nullable<DateTime>, Nullable<DateTime>, String, String, String, String, String, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, Nullable<HttpStatusCode>, CancellationToken)

Declaration
public virtual Task<long> GetCountAsync(DateTime? startTime = null, DateTime? endTime = null, string httpMethod = null, string url = null, string userName = null, string applicationName = null, string correlationId = null, int? maxExecutionDuration = null, int? minExecutionDuration = null, bool? hasException = null, HttpStatusCode? httpStatusCode = null, CancellationToken cancellationToken = null)
Parameters
Type Name Description
System.Nullable<DateTime> startTime
System.Nullable<DateTime> endTime
System.String httpMethod
System.String url
System.String userName
System.String applicationName
System.String correlationId
System.Nullable<System.Int32> maxExecutionDuration
System.Nullable<System.Int32> minExecutionDuration
System.Nullable<System.Boolean> hasException
System.Nullable<HttpStatusCode> httpStatusCode
CancellationToken cancellationToken
Returns
Type Description
Task<System.Int64>

GetEntityChange(Guid)

Declaration
public Task<EntityChange> GetEntityChange(Guid entityChangeId)
Parameters
Type Name Description
Guid entityChangeId
Returns
Type Description
Task<EntityChange>

GetEntityChangeCountAsync(Nullable<Guid>, Nullable<DateTime>, Nullable<DateTime>, Nullable<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 = null)
Parameters
Type Name Description
System.Nullable<Guid> auditLogId
System.Nullable<DateTime> startTime
System.Nullable<DateTime> endTime
System.Nullable<EntityChangeType> changeType
System.String entityId
System.String entityTypeFullName
CancellationToken cancellationToken
Returns
Type Description
Task<System.Int64>

GetEntityChangeListAsync(String, Int32, Int32, Nullable<Guid>, Nullable<DateTime>, Nullable<DateTime>, Nullable<EntityChangeType>, String, String, Boolean, 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 = null)
Parameters
Type Name Description
System.String sorting
System.Int32 maxResultCount
System.Int32 skipCount
System.Nullable<Guid> auditLogId
System.Nullable<DateTime> startTime
System.Nullable<DateTime> endTime
System.Nullable<EntityChangeType> changeType
System.String entityId
System.String entityTypeFullName
System.Boolean includeDetails
CancellationToken cancellationToken
Returns
Type Description
Task<List<EntityChange>>

GetEntityChangeListQuery(Nullable<Guid>, Nullable<DateTime>, Nullable<DateTime>, Nullable<EntityChangeType>, String, String, Boolean)

Declaration
protected virtual IQueryable<EntityChange> GetEntityChangeListQuery(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
System.Nullable<Guid> auditLogId
System.Nullable<DateTime> startTime
System.Nullable<DateTime> endTime
System.Nullable<EntityChangeType> changeType
System.String entityId
System.String entityTypeFullName
System.Boolean includeDetails
Returns
Type Description
IQueryable<EntityChange>

GetEntityChangesWithUsernameAsync(String, String)

Declaration
public virtual Task<List<EntityChangeWithUsername>> GetEntityChangesWithUsernameAsync(string entityId, string entityTypeFullName)
Parameters
Type Name Description
System.String entityId
System.String entityTypeFullName
Returns
Type Description
Task<List<EntityChangeWithUsername>>

GetEntityChangeWithUsernameAsync(Guid)

Declaration
public virtual Task<EntityChangeWithUsername> GetEntityChangeWithUsernameAsync(Guid entityChangeId)
Parameters
Type Name Description
Guid entityChangeId
Returns
Type Description
Task<EntityChangeWithUsername>

GetListAsync(String, Int32, Int32, Nullable<DateTime>, Nullable<DateTime>, String, String, String, String, String, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, Nullable<HttpStatusCode>, Boolean, 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 userName = null, string applicationName = null, string correlationId = null, int? maxExecutionDuration = null, int? minExecutionDuration = null, bool? hasException = null, HttpStatusCode? httpStatusCode = null, bool includeDetails = false, CancellationToken cancellationToken = null)
Parameters
Type Name Description
System.String sorting
System.Int32 maxResultCount
System.Int32 skipCount
System.Nullable<DateTime> startTime
System.Nullable<DateTime> endTime
System.String httpMethod
System.String url
System.String userName
System.String applicationName
System.String correlationId
System.Nullable<System.Int32> maxExecutionDuration
System.Nullable<System.Int32> minExecutionDuration
System.Nullable<System.Boolean> hasException
System.Nullable<HttpStatusCode> httpStatusCode
System.Boolean includeDetails
CancellationToken cancellationToken
Returns
Type Description
Task<List<AuditLog>>

GetListQuery(Nullable<DateTime>, Nullable<DateTime>, String, String, String, String, String, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, Nullable<HttpStatusCode>, Boolean)

Declaration
protected virtual IQueryable<AuditLog> GetListQuery(DateTime? startTime = null, DateTime? endTime = null, string httpMethod = null, string url = null, string userName = null, string applicationName = null, string correlationId = null, int? maxExecutionDuration = null, int? minExecutionDuration = null, bool? hasException = null, HttpStatusCode? httpStatusCode = null, bool includeDetails = false)
Parameters
Type Name Description
System.Nullable<DateTime> startTime
System.Nullable<DateTime> endTime
System.String httpMethod
System.String url
System.String userName
System.String applicationName
System.String correlationId
System.Nullable<System.Int32> maxExecutionDuration
System.Nullable<System.Int32> minExecutionDuration
System.Nullable<System.Boolean> hasException
System.Nullable<HttpStatusCode> httpStatusCode
System.Boolean includeDetails
Returns
Type Description
IQueryable<AuditLog>

WithDetails()

Declaration
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()

Implements

IAsyncEnumerable<>
IEfCoreRepository<TEntity, TKey>
IEfCoreRepository<TEntity>
IRepository<TEntity>
IRepository<TEntity, TKey>
ISupportsExplicitLoading<TEntity, TKey>
IAuditLogRepository
IRepository<TEntity, TKey>

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft