UserRepository
Namespace: Babel.Data Assembly: Babel.Data.dll
A user repository.
Inheritance
object ← GenericRepository<User> ← UserRepository
Implements
IUserRepository, IGenericRepository<User>
Inherited Members
GenericRepository<User>.Get(Expression<Func<User, bool>>, Func<IQueryable<User>, IOrderedQueryable<User>>, string, string, int?, int?), GenericRepository<User>.GetAsync(Expression<Func<User, bool>>, Func<IQueryable<User>, IOrderedQueryable<User>>, string, string, int?, int?, CancellationToken), GenericRepository<User>.QueryAsync(string, string, string, string, int?, int?, CancellationToken), GenericRepository<User>.GroupByAsync(string, string, int?, int?, CancellationToken), GenericRepository<User>.GetById(params object[]), GenericRepository<User>.GetByIdAsync(params object[]), GenericRepository<User>.GetByIdAsync(object[], CancellationToken), GenericRepository<User>.CountAsync(Expression<Func<User, bool>>, CancellationToken), GenericRepository<User>.CountAsync(string, CancellationToken), GenericRepository<User>.Insert(User), GenericRepository<User>.InsertAsync(User, CancellationToken), GenericRepository<User>.Update(User), GenericRepository<User>.Delete(params object[]), GenericRepository<User>.Delete(User), GenericRepository<User>.Save(), GenericRepository<User>.SaveAsync(CancellationToken), GenericRepository<User>.DbSet, GenericRepository<User>.Context, GenericRepository<User>.NoTracking, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
UserRepository(BabelDbContext)
Initializes a new instance of the ProductRepository class.
Parameters
The database context.
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