RoleStore<TRole,TContext,TKey> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new instance of a persistence store for roles.
generic <typename TRole, typename TContext, typename TKey>
where TRole : IdentityRole<TKey> where TContext : DbContext where TKey : IEquatable<TKey>public ref class RoleStore : Microsoft::AspNetCore::Identity::EntityFrameworkCore::RoleStore<TRole, TContext, TKey, Microsoft::AspNetCore::Identity::EntityFrameworkCore::IdentityUserRole<TKey> ^, Microsoft::AspNetCore::Identity::EntityFrameworkCore::IdentityRoleClaim<TKey> ^>, IDisposable, Microsoft::AspNetCore::Identity::IQueryableRoleStore<TRole>, Microsoft::AspNetCore::Identity::IRoleClaimStore<TRole>, Microsoft::AspNetCore::Identity::IRoleStore<TRole>
generic <typename TRole, typename TContext, typename TKey>
where TRole : IdentityRole<TKey> where TContext : DbContext where TKey : IEquatable<TKey>public ref class RoleStore : Microsoft::AspNetCore::Identity::EntityFrameworkCore::RoleStore<TRole, TContext, TKey, Microsoft::AspNetCore::Identity::IdentityUserRole<TKey> ^, Microsoft::AspNetCore::Identity::IdentityRoleClaim<TKey> ^>, IDisposable, Microsoft::AspNetCore::Identity::IQueryableRoleStore<TRole>, Microsoft::AspNetCore::Identity::IRoleClaimStore<TRole>, Microsoft::AspNetCore::Identity::IRoleStore<TRole>
public class RoleStore<TRole,TContext,TKey> : Microsoft.AspNetCore.Identity.EntityFrameworkCore.RoleStore<TRole,TContext,TKey,Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserRole<TKey>,Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRoleClaim<TKey>>, IDisposable, Microsoft.AspNetCore.Identity.IQueryableRoleStore<TRole>, Microsoft.AspNetCore.Identity.IRoleClaimStore<TRole>, Microsoft.AspNetCore.Identity.IRoleStore<TRole> where TRole : IdentityRole<TKey> where TContext : DbContext where TKey : IEquatable<TKey>
public class RoleStore<TRole,TContext,TKey> : Microsoft.AspNetCore.Identity.EntityFrameworkCore.RoleStore<TRole,TContext,TKey,Microsoft.AspNetCore.Identity.IdentityUserRole<TKey>,Microsoft.AspNetCore.Identity.IdentityRoleClaim<TKey>>, IDisposable, Microsoft.AspNetCore.Identity.IQueryableRoleStore<TRole>, Microsoft.AspNetCore.Identity.IRoleClaimStore<TRole>, Microsoft.AspNetCore.Identity.IRoleStore<TRole> where TRole : IdentityRole<TKey> where TContext : DbContext where TKey : IEquatable<TKey>
type RoleStore<'Role, 'Context, 'Key (requires 'Role :> IdentityRole<'Key> and 'Context :> DbContext and 'Key :> IEquatable<'Key>)> = class
inherit RoleStore<'Role, 'Context, 'Key, IdentityUserRole<'Key>, IdentityRoleClaim<'Key> (requires 'Role :> IdentityRole<'Key> and 'Context :> DbContext and 'Key :> IEquatable<'Key>)>
interface IQueryableRoleStore<'Role (requires 'Role :> IdentityRole<'Key>)>
interface IRoleStore<'Role (requires 'Role :> IdentityRole<'Key>)>
interface IDisposable
interface IRoleClaimStore<'Role (requires 'Role :> IdentityRole<'Key>)>
Public Class RoleStore(Of TRole, TContext, TKey)
Inherits RoleStore(Of TRole, TContext, TKey, IdentityUserRole(Of TKey), IdentityRoleClaim(Of TKey))
Implements IDisposable, IQueryableRoleStore(Of TRole), IRoleClaimStore(Of TRole), IRoleStore(Of TRole)
Type Parameters
- TRole
The type of the class representing a role.
- TContext
The type of the data context class used to access the store.
- TKey
The type of the primary key for a role.
- Inheritance
-
RoleStore<TRole,TContext,TKey>
- Inheritance
-
RoleStore<TRole,TContext,TKey>
- Derived
- Implements
Constructors
RoleStore<TRole,TContext,TKey>(TContext, IdentityErrorDescriber) |
Constructs a new instance of RoleStore<TRole,TContext,TKey>. |
Properties
AutoSaveChanges |
Gets or sets a flag indicating if changes should be persisted after CreateAsync, UpdateAsync and DeleteAsync are called. (Inherited from RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>) |
Context |
Gets the database context for this store. (Inherited from RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>) |
ErrorDescriber |
Gets or sets the IdentityErrorDescriber for any error that occurred with the current operation. (Inherited from RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>) |
Roles |
A navigation property for the roles the store contains. (Inherited from RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>) |