RoleStore<TRole> 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为角色创建持久性存储的新实例。
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)
类型参数
- TRole
表示角色的类的类型
- 继承
-
RoleStore<TRole>
- 继承
-
RoleStore<TRole>
构造函数
| RoleStore<TRole>(DbContext, IdentityErrorDescriber) |
构造 RoleStore<TRole> 的新实例。 |
属性
| AutoSaveChanges |
获取或设置一个标志,该标志指示在调用 CreateAsync、UpdateAsync 和 DeleteAsync 后是否应保留更改。 (继承自 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>) |
| Context |
获取此存储的数据库上下文。 (继承自 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>) |
| ErrorDescriber |
获取或设置 IdentityErrorDescriber 当前操作发生的任何错误的 。 (继承自 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>) |
| Roles |
存储区包含的角色的导航属性。 (继承自 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>) |