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