IUserRepository
Namespace: Babel.Data Assembly: Babel.Data.dll
Interface for user repository.
Implements
Methods
CountAsync(string, string, CancellationToken)
Asynchronously returns the number of elements in the repository.
Parameters
(Optional) Specifies the filter.
(Optional) Specifies the list of roles the use belong.
(Optional) A token that allows processing to be cancelled.
Returns
An asynchronous result that yields the number of elements in the repository.
Delete(IEnumerable<string>)
Deletes a list of user 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 users Identifiers to delete.
GetRolesAsync()
Asynchronously gets the list of user roles.
Returns
An asynchronous result that yields the user roles.
QueryAsync(string, string, string, string, int?, int?, string, CancellationToken)
Asynchronously query a list of users from this repository.
Parameters
(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) Specifies the list of roles the use belong.
(Optional) A token that allows processing to be cancelled.
Returns
A task that represents the asynchronous get operation.
Last updated