Class MongoIdentityRoleRepository
Inheritance
MongoIdentityRoleRepository
Implements
Inherited Members
MongoDbRepository<IAbpIdentityMongoDbContext, IdentityRole>.GetSessionHandleAsync(CancellationToken)
MongoDbRepository<IAbpIdentityMongoDbContext, IdentityRole>.SetCreationAuditProperties(IdentityRole)
MongoDbRepository<IAbpIdentityMongoDbContext, IdentityRole>.SetDeletionAuditProperties(IdentityRole)
Namespace: Volo.Abp.Identity.MongoDB
Assembly: Volo.Abp.Identity.MongoDB.dll
Syntax
public class MongoIdentityRoleRepository : MongoDbRepository<IAbpIdentityMongoDbContext, IdentityRole, Guid>, IServiceProviderAccessor, IUnitOfWorkEnabled, IUnitOfWorkManagerAccessor, IMongoDbRepository<IdentityRole, Guid>, IMongoDbRepository<IdentityRole>, IRepository<IdentityRole, Guid>, IRepository<IdentityRole>, IReadOnlyRepository<IdentityRole, Guid>, IReadOnlyRepository<IdentityRole>, IBasicRepository<IdentityRole, Guid>, IIdentityRoleRepository, IBasicRepository<IdentityRole, Guid>, IBasicRepository<IdentityRole>, IReadOnlyBasicRepository<IdentityRole, Guid>, IReadOnlyBasicRepository<IdentityRole>, IRepository
Constructors
MongoIdentityRoleRepository(IMongoDbContextProvider<IAbpIdentityMongoDbContext>)
Declaration
public MongoIdentityRoleRepository(IMongoDbContextProvider<IAbpIdentityMongoDbContext> dbContextProvider)
Parameters
Type | Name | Description |
---|---|---|
IMongoDbContextProvider<IAbpIdentityMongoDbContext> | dbContextProvider |
Methods
FindByNormalizedNameAsync(string, bool, CancellationToken)
Declaration
public virtual Task<IdentityRole> FindByNormalizedNameAsync(string normalizedRoleName, bool includeDetails = true, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | normalizedRoleName | |
bool | includeDetails | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<IdentityRole> |
GetCountAsync(string, CancellationToken)
Declaration
public virtual Task<long> GetCountAsync(string filter = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | filter | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<long> |
GetDefaultOnesAsync(bool, CancellationToken)
Declaration
public virtual Task<List<IdentityRole>> GetDefaultOnesAsync(bool includeDetails = false, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
bool | 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 = default)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Guid> | ids | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<List<IdentityRole>> |
GetListAsync(string, int, int, string, bool, CancellationToken)
Declaration
public virtual Task<List<IdentityRole>> GetListAsync(string sorting = null, int maxResultCount = 2147483647, int skipCount = 0, string filter = null, bool includeDetails = false, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | sorting | |
int | maxResultCount | |
int | skipCount | |
string | filter | |
bool | includeDetails | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<List<IdentityRole>> |
GetListInternalAsync(string, int, int, string, bool, CancellationToken)
Declaration
protected virtual Task<List<IdentityRole>> GetListInternalAsync(string sorting = null, int maxResultCount = 2147483647, int skipCount = 0, string filter = null, bool includeDetails = true, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | sorting | |
int | maxResultCount | |
int | skipCount | |
string | filter | |
bool | includeDetails | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<List<IdentityRole>> |
GetListWithUserCountAsync(string, int, int, string, bool, CancellationToken)
Declaration
public virtual Task<List<IdentityRoleWithUserCount>> GetListWithUserCountAsync(string sorting = null, int maxResultCount = 2147483647, int skipCount = 0, string filter = null, bool includeDetails = false, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | sorting | |
int | maxResultCount | |
int | skipCount | |
string | filter | |
bool | includeDetails | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<List<IdentityRoleWithUserCount>> |
RemoveClaimFromAllRolesAsync(string, bool, CancellationToken)
Declaration
public virtual Task RemoveClaimFromAllRolesAsync(string claimType, bool autoSave = false, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | claimType | |
bool | autoSave | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task |