ILicenseTemplateRepository

Namespace: Babel.Data Assembly: Babel.Data.dll

Interface for license template repository.

public interface ILicenseTemplateRepository : IGenericRepository<LicenseTemplate>

Implements

IGenericRepository<LicenseTemplate>

Methods

Delete(IEnumerable<int>)

Deletes a list of templates with the given primary key values.

void Delete(IEnumerable<int> templateIds)

Parameters

NameDescription

templateIds IEnumerable<int>

The template primary key ids to delete.

GetTemplateSignatureKeysAsync(int)

Asynchronously gets the signature keys for a given template.

Task<Resource> GetTemplateSignatureKeysAsync(int templateId)

Parameters

NameDescription

templateId int

The template primary key.

Returns

NameDescription

An asynchronous result that yields the template signature keys.

QueryAsync(int, int?, string, string, string, string, int?, int?, CancellationToken)

Asynchronously queries a list of LicenseTemplate objects for a given license from this repository.

Task<List<LicenseTemplate>> QueryAsync(int productId, int? releaseId = null, string select = null, string filter = null, string orderBy = null, string includeProperties = "", int? skip = null, int? take = null, CancellationToken cancellationToken = default)

Parameters

NameDescription

productId int

The ID of the product to retrieve templates for.

releaseId int?

(Optional) The ID of the release to retrieve templates for.

select string

(Optional) Specifies a select expression.

filter string

(Optional) Specifies the filter expression.

orderBy string

(Optional) Order by expression.

includeProperties string

(Optional) A comma separated list of nested entity names to retrieve.

skip int?

(Optional) The number of records to skip before the first record found.

take int?

(Optional) The number of records to take after the first record found.

cancellationToken CancellationToken

(Optional) A token that allows processing to be cancelled.

Returns

NameDescription

A task that represents the asynchronous get operation, containing a list of LicenseTemplate objects.

Last updated