LicenseTraceRepository
Namespace: Babel.Data Assembly: Babel.Data.dll
A license trace repository.
Inheritance
object ← GenericRepository<LicenseTrace> ← LicenseTraceRepository
Implements
ILicenseTraceRepository, IGenericRepository<LicenseTrace>
Inherited Members
GenericRepository<LicenseTrace>.Get(Expression<Func<LicenseTrace, bool>>, Func<IQueryable<LicenseTrace>, IOrderedQueryable<LicenseTrace>>, string, string, int?, int?), GenericRepository<LicenseTrace>.GetAsync(Expression<Func<LicenseTrace, bool>>, Func<IQueryable<LicenseTrace>, IOrderedQueryable<LicenseTrace>>, string, string, int?, int?, CancellationToken), GenericRepository<LicenseTrace>.QueryAsync(string, string, string, string, int?, int?, CancellationToken), GenericRepository<LicenseTrace>.GroupByAsync(string, string, int?, int?, CancellationToken), GenericRepository<LicenseTrace>.GetById(params object[]), GenericRepository<LicenseTrace>.GetByIdAsync(params object[]), GenericRepository<LicenseTrace>.GetByIdAsync(object[], CancellationToken), GenericRepository<LicenseTrace>.CountAsync(Expression<Func<LicenseTrace, bool>>, CancellationToken), GenericRepository<LicenseTrace>.CountAsync(string, CancellationToken), GenericRepository<LicenseTrace>.Insert(LicenseTrace), GenericRepository<LicenseTrace>.InsertAsync(LicenseTrace, CancellationToken), GenericRepository<LicenseTrace>.Update(LicenseTrace), GenericRepository<LicenseTrace>.Delete(params object[]), GenericRepository<LicenseTrace>.Delete(LicenseTrace), GenericRepository<LicenseTrace>.Save(), GenericRepository<LicenseTrace>.SaveAsync(CancellationToken), GenericRepository<LicenseTrace>.DbSet, GenericRepository<LicenseTrace>.Context, GenericRepository<LicenseTrace>.NoTracking, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
LicenseTraceRepository(BabelDbContext)
Initializes a new instance of the class.
Parameters
The database context.
Methods
CountAsync(int?, string, CancellationToken)
Asynchronously returns the number of license traces in the repository for a given license.
Parameters
(Optional) The ID of the license to count traces for.
(Optional) Specifies the string filter.
(Optional) A token that allows processing to be cancelled.
Returns
An asynchronous result that yields the number of elements in the repository.
Delete(IEnumerable<int>)
Deletes a list of license traces with the given primary key values.
Parameters
The license trace primary key ids to delete.
QueryAsync(int?, string, string, string, string, int?, int?, CancellationToken)
Asynchronously queries a list of LicenseTrace objects for a given license from this repository.
Parameters
(Optional) The ID of the license to retrieve traces for.
(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) A token that allows processing to be cancelled.
Returns
A task that represents the asynchronous get operation, containing a list of LicenseTrace objects.
Last updated