RoleStore<TRole,TContext> 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>
where TRole : IdentityRole<System::String ^> where TContext : DbContextpublic ref class RoleStore : Microsoft::AspNetCore::Identity::EntityFrameworkCore::RoleStore<TRole, TContext, System::String ^>
public class RoleStore<TRole,TContext> : Microsoft.AspNetCore.Identity.EntityFrameworkCore.RoleStore<TRole,TContext,string> where TRole : IdentityRole<string> where TContext : DbContext
type RoleStore<'Role, 'Context (requires 'Role :> IdentityRole<string> and 'Context :> DbContext)> = class
inherit RoleStore<'Role, 'Context, string (requires 'Role :> IdentityRole<string> and 'Context :> DbContext)>
Public Class RoleStore(Of TRole, TContext)
Inherits RoleStore(Of TRole, TContext, String)
Type Parameters
- TRole
The type of the class representing a role.
- TContext
The type of the data context class used to access the store.
- Inheritance
-
RoleStore<TRole,TContext>
- Inheritance
-
RoleStore<TRole,TContext>
Constructors
RoleStore<TRole,TContext>(TContext, IdentityErrorDescriber) |
Constructs a new instance of RoleStore<TRole,TContext>. |
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>) |