LogEntryRepository
Namespace: Babel.Data Assembly: Babel.Data.dll
A log entry repository.
Inheritance
object ← GenericRepository<LogEntry> ← LogEntryRepository
Implements
ILogEntryRepository, IGenericRepository<LogEntry>
Inherited Members
GenericRepository<LogEntry>.Get(Expression<Func<LogEntry, bool>>, Func<IQueryable<LogEntry>, IOrderedQueryable<LogEntry>>, string, string, int?, int?), GenericRepository<LogEntry>.GetAsync(Expression<Func<LogEntry, bool>>, Func<IQueryable<LogEntry>, IOrderedQueryable<LogEntry>>, string, string, int?, int?, CancellationToken), GenericRepository<LogEntry>.QueryAsync(string, string, string, string, int?, int?, CancellationToken), GenericRepository<LogEntry>.GetById(params object[]), GenericRepository<LogEntry>.GetByIdAsync(params object[]), GenericRepository<LogEntry>.GetByIdAsync(object[], CancellationToken), GenericRepository<LogEntry>.CountAsync(Expression<Func<LogEntry, bool>>, CancellationToken), GenericRepository<LogEntry>.CountAsync(string, CancellationToken), GenericRepository<LogEntry>.Insert(LogEntry), GenericRepository<LogEntry>.InsertAsync(LogEntry, CancellationToken), GenericRepository<LogEntry>.Update(LogEntry), GenericRepository<LogEntry>.Delete(params object[]), GenericRepository<LogEntry>.Delete(LogEntry), GenericRepository<LogEntry>.Save(), GenericRepository<LogEntry>.SaveAsync(CancellationToken), GenericRepository<LogEntry>.DbSet, GenericRepository<LogEntry>.Context, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
LogEntryRepository(BabelDbContext)
Initializes a new instance of the LogEntryRepository class.
Parameters
Name | Description |
---|---|
| The database context. |
Methods
ConfigureAsync(LogsConfiguration)
Asynchronously configures the log.
Parameters
Name | Description |
---|---|
| The log configuration. |
Returns
CountAsync(string, DateTime?, DateTime?, CancellationToken)
Asynchronously returns the number of log entries in the repository.
Parameters
Name | Description |
---|---|
| Specifies the string filter. |
| (Optional) The log start date. |
| (Optional) The log end date. |
| (Optional) A token that allows processing to be cancelled. |
Returns
Name | Description |
---|---|
An asynchronous result that yields the number of log entries in the repository. |
Delete(IEnumerable<int>)
Deletes a list of log with the given primary key values. Begins tracking the given entities in the Detached state such that they will be deleted in the database when SaveChanges() is called.
Parameters
Name | Description |
---|---|
| The log primary key ids to delete. |
GetLogEntryCountersAsync(int)
Asynchronously gets counters for the given log entry.
Parameters
Name | Description |
---|---|
| The primary key of the log entry. |
Returns
Name | Description |
---|---|
An asynchronous result that yields the log entry counters. |
GetLogSummaryAsync(DateTime, DateTime)
Asynchronously gets a list of log summaries from this repository.
Parameters
Name | Description |
---|---|
| Specifies a start date from which the log has been created. |
| Specifies an end date before which the log has been created. |
Returns
Name | Description |
---|---|
A task that represents the asynchronous get operation. |
QueryAsync(string, string, string, string, int?, int?, DateTime?, DateTime?, CancellationToken)
Asynchronously query a list of entities from this repository.
Parameters
Name | Description |
---|---|
| (Optional) Specifies a select expression. |
| (Optional) Specifies the filter expression. |
| (Optional) Order by expression. |
| (Optional) A comma separated list of nested entity names to retrieve. |
| (Optional) The number of records to skip before the first record found. |
| (Optional) The number of records to take after the first record found. |
| (Optional) The log start date. |
| (Optional) The log end date. |
| (Optional) A token that allows processing to be cancelled. |
Returns
Last updated