LicenseTemplateRepository
Namespace: Babel.Data Assembly: Babel.Data.dll
A license template repository.
Inheritance
object ← GenericRepository<LicenseTemplate> ← LicenseTemplateRepository
Implements
ILicenseTemplateRepository, IGenericRepository<LicenseTemplate>
Inherited Members
GenericRepository<LicenseTemplate>.Get(Expression<Func<LicenseTemplate, bool>>, Func<IQueryable<LicenseTemplate>, IOrderedQueryable<LicenseTemplate>>, string, string, int?, int?), GenericRepository<LicenseTemplate>.GetAsync(Expression<Func<LicenseTemplate, bool>>, Func<IQueryable<LicenseTemplate>, IOrderedQueryable<LicenseTemplate>>, string, string, int?, int?, CancellationToken), GenericRepository<LicenseTemplate>.QueryAsync(string, string, string, string, int?, int?, CancellationToken), GenericRepository<LicenseTemplate>.GroupByAsync(string, string, int?, int?, CancellationToken), GenericRepository<LicenseTemplate>.GetById(params object[]), GenericRepository<LicenseTemplate>.GetByIdAsync(params object[]), GenericRepository<LicenseTemplate>.GetByIdAsync(object[], CancellationToken), GenericRepository<LicenseTemplate>.CountAsync(Expression<Func<LicenseTemplate, bool>>, CancellationToken), GenericRepository<LicenseTemplate>.CountAsync(string, CancellationToken), GenericRepository<LicenseTemplate>.Insert(LicenseTemplate), GenericRepository<LicenseTemplate>.InsertAsync(LicenseTemplate, CancellationToken), GenericRepository<LicenseTemplate>.Update(LicenseTemplate), GenericRepository<LicenseTemplate>.Delete(params object[]), GenericRepository<LicenseTemplate>.Delete(LicenseTemplate), GenericRepository<LicenseTemplate>.Save(), GenericRepository<LicenseTemplate>.SaveAsync(CancellationToken), GenericRepository<LicenseTemplate>.DbSet, GenericRepository<LicenseTemplate>.Context, GenericRepository<LicenseTemplate>.NoTracking, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
LicenseTemplateRepository(BabelDbContext)
Initializes a new instance of the LicenseTemplateRepository class.
Parameters
The context.
Methods
Delete(IEnumerable<int>)
Deletes a list of templates 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
The template primary key ids to delete.
GetTemplateSignatureKeysAsync(int)
Asynchronously gets the signature keys for a given template.
Parameters
The template primary key.
Returns
An asynchronous result that yields the template signature keys.
Insert(LicenseTemplate)
Inserts the given template entity in the repository. Begins tracking the given entity, and any other reachable entities that are not already being tracked, in the Added state such that they will be inserted into the database when SaveChanges() is called.
Parameters
The template entity.
Examples
InsertAsync(LicenseTemplate, CancellationToken)
Asynchronously inserts the given template entity in the repository. Begins tracking the given entity, and any other reachable entities that are not already being tracked, in the Added state such that they will be inserted into the database when SaveChanges() is called.
Parameters
The template entity.
(Optional) A token that allows processing to be cancelled.
Returns
An asynchronous result that yields the insert.
QueryAsync(int, int?, string, string, string, string, int?, int?, CancellationToken)
Asynchronously queries a list of LicenseTemplate objects for a given license from this repository.
Parameters
The ID of the product to retrieve templates for.
(Optional) The ID of the release to retrieve templates 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 LicenseTemplate objects.
Update(LicenseTemplate)
Updates the given license template in the repository. Begins tracking the given entity in the Modified state such that it will be updated in the database when SaveChanges() is called.
Parameters
The template to update.
Last updated