Show / Hide Table of Contents

Class EfCoreIdentityRoleRepository

Inheritance
System.Object
EfCoreIdentityRoleRepository
Implements
IIdentityRoleRepository
IBasicRepository<IdentityRole, Guid>
Namespace: Volo.Abp.Identity.EntityFrameworkCore
Assembly: Volo.Abp.Identity.EntityFrameworkCore.dll
Syntax
public class EfCoreIdentityRoleRepository : EfCoreRepository<IIdentityDbContext, IdentityRole, Guid>, IIdentityRoleRepository, IBasicRepository<IdentityRole, Guid>

Constructors

EfCoreIdentityRoleRepository(IDbContextProvider<IIdentityDbContext>)

Declaration
public EfCoreIdentityRoleRepository(IDbContextProvider<IIdentityDbContext> dbContextProvider)
Parameters
Type Name Description
IDbContextProvider<IIdentityDbContext> dbContextProvider

Methods

FindByNormalizedNameAsync(String, Boolean, CancellationToken)

Declaration
public virtual Task<IdentityRole> FindByNormalizedNameAsync(string normalizedRoleName, bool includeDetails = true, CancellationToken cancellationToken = null)
Parameters
Type Name Description
System.String normalizedRoleName
System.Boolean includeDetails
CancellationToken cancellationToken
Returns
Type Description
Task<IdentityRole>

GetCountAsync(String, CancellationToken)

Declaration
public Task<long> GetCountAsync(string filter = null, CancellationToken cancellationToken = null)
Parameters
Type Name Description
System.String filter
CancellationToken cancellationToken
Returns
Type Description
Task<System.Int64>

GetDefaultOnesAsync(Boolean, CancellationToken)

Declaration
public virtual Task<List<IdentityRole>> GetDefaultOnesAsync(bool includeDetails = false, CancellationToken cancellationToken = null)
Parameters
Type Name Description
System.Boolean includeDetails
CancellationToken cancellationToken
Returns
Type Description
Task<List<IdentityRole>>

GetListAsync(IEnumerable<Guid>, CancellationToken)

Declaration
public virtual Task<List<IdentityRole>> GetListAsync(IEnumerable<Guid> ids, CancellationToken cancellationToken = null)
Parameters
Type Name Description
IEnumerable<Guid> ids
CancellationToken cancellationToken
Returns
Type Description
Task<List<IdentityRole>>

GetListAsync(String, Int32, Int32, String, Boolean, CancellationToken)

Declaration
public virtual Task<List<IdentityRole>> GetListAsync(string sorting = null, int maxResultCount = null, int skipCount = 0, string filter = null, bool includeDetails = true, CancellationToken cancellationToken = null)
Parameters
Type Name Description
System.String sorting
System.Int32 maxResultCount
System.Int32 skipCount
System.String filter
System.Boolean includeDetails
CancellationToken cancellationToken
Returns
Type Description
Task<List<IdentityRole>>

WithDetails()

Declaration
public override IQueryable<IdentityRole> WithDetails()
Returns
Type Description
IQueryable<IdentityRole>

Implements

IIdentityRoleRepository
IBasicRepository<TEntity, TKey>

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft