RoleStore<TRole,TContext,TKey> 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
為角色建立持續性存放區的新實例。
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)
類型參數
- TRole
代表角色的類別類型。
- TContext
用來存取存放區的資料內容類別別類型。
- TKey
角色的主鍵類型。
- 繼承
-
RoleStore<TRole,TContext,TKey>
- 繼承
-
RoleStore<TRole,TContext,TKey>
- 衍生
- 實作
建構函式
RoleStore<TRole,TContext,TKey>(TContext, IdentityErrorDescriber) |
建構 RoleStore<TRole,TContext,TKey> 的新執行個體。 |
屬性
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>) |