ILicenseTraceRepository

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

Interface for license trace repository.

public interface ILicenseTraceRepository : IGenericRepository<LicenseTrace>

Implements

IGenericRepository<LicenseTrace>

Methods

CountAsync(int?, string, CancellationToken)

Asynchronously returns the number of license traces in the repository for a given license.

Task<int> CountAsync(int? licenseId, string filter = null, CancellationToken cancellationToken = default)

Parameters

Name
Description

licenseId int?

(Optional) The ID of the license to count traces for.

filter string

(Optional) Specifies the string filter.

cancellationToken CancellationToken

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

Returns

Name
Description

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.

void Delete(IEnumerable<int> licenseTracesIds)

Parameters

Name
Description

licenseTracesIds IEnumerable<int>

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.

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

Parameters

Name
Description

licenseId int?

(Optional) The ID of the license to retrieve traces 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

Name
Description

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

Last updated