Share via


RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim> クラス

定義

ロールの永続化ストアの新しいインスタンスを作成します。

generic <typename TRole, typename TContext, typename TKey, typename TUserRole, typename TRoleClaim>
 where TRole : IdentityRole<TKey, TUserRole, TRoleClaim> where TContext : DbContext where TKey : IEquatable<TKey> where TUserRole : IdentityUserRole<TKey> where TRoleClaim : IdentityRoleClaim<TKey>public ref class RoleStore abstract : IDisposable, Microsoft::AspNetCore::Identity::IQueryableRoleStore<TRole>, Microsoft::AspNetCore::Identity::IRoleClaimStore<TRole>, Microsoft::AspNetCore::Identity::IRoleStore<TRole>
generic <typename TRole, typename TContext, typename TKey, typename TUserRole, typename TRoleClaim>
 where TRole : IdentityRole<TKey> where TContext : DbContext where TKey : IEquatable<TKey> where TUserRole : IdentityUserRole<TKey>gcnew() where TRoleClaim : IdentityRoleClaim<TKey>gcnew()public ref class RoleStore : IDisposable, Microsoft::AspNetCore::Identity::IQueryableRoleStore<TRole>, Microsoft::AspNetCore::Identity::IRoleClaimStore<TRole>, Microsoft::AspNetCore::Identity::IRoleStore<TRole>
public abstract class RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim> : IDisposable, Microsoft.AspNetCore.Identity.IQueryableRoleStore<TRole>, Microsoft.AspNetCore.Identity.IRoleClaimStore<TRole>, Microsoft.AspNetCore.Identity.IRoleStore<TRole> where TRole : IdentityRole<TKey,TUserRole,TRoleClaim> where TContext : DbContext where TKey : IEquatable<TKey> where TUserRole : IdentityUserRole<TKey> where TRoleClaim : IdentityRoleClaim<TKey>
public class RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim> : 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> where TUserRole : IdentityUserRole<TKey>, new() where TRoleClaim : IdentityRoleClaim<TKey>, new()
type RoleStore<'Role, 'Context, 'Key, 'UserRole, 'RoleClaim (requires 'Role :> IdentityRole<'Key, 'UserRole, 'RoleClaim> and 'Context :> DbContext and 'Key :> IEquatable<'Key> and 'UserRole :> IdentityUserRole<'Key> and 'RoleClaim :> IdentityRoleClaim<'Key>)> = class
    interface IQueryableRoleStore<'Role (requires 'Role :> IdentityRole<'Key, 'UserRole, 'RoleClaim>)>
    interface IRoleStore<'Role (requires 'Role :> IdentityRole<'Key, 'UserRole, 'RoleClaim>)>
    interface IDisposable
    interface IRoleClaimStore<'Role (requires 'Role :> IdentityRole<'Key, 'UserRole, 'RoleClaim>)>
type RoleStore<'Role, 'Context, 'Key, 'UserRole, 'RoleClaim (requires 'Role :> IdentityRole<'Key> and 'Context :> DbContext and 'Key :> IEquatable<'Key> and 'UserRole :> IdentityUserRole<'Key> and 'UserRole : (new : unit -> 'UserRole) and 'RoleClaim :> IdentityRoleClaim<'Key> and 'RoleClaim : (new : unit -> 'RoleClaim))> = class
    interface IQueryableRoleStore<'Role (requires 'Role :> IdentityRole<'Key>)>
    interface IRoleStore<'Role (requires 'Role :> IdentityRole<'Key>)>
    interface IDisposable
    interface IRoleClaimStore<'Role (requires 'Role :> IdentityRole<'Key>)>
Public MustInherit Class RoleStore(Of TRole, TContext, TKey, TUserRole, TRoleClaim)
Implements IDisposable, IQueryableRoleStore(Of TRole), IRoleClaimStore(Of TRole), IRoleStore(Of TRole)
Public Class RoleStore(Of TRole, TContext, TKey, TUserRole, TRoleClaim)
Implements IDisposable, IQueryableRoleStore(Of TRole), IRoleClaimStore(Of TRole), IRoleStore(Of TRole)

型パラメーター

TRole

ロールを表すクラスの型。

TContext

ストアへのアクセスに使用されるデータ コンテキスト クラスの型。

TKey

ロールの主キーの種類。

TUserRole

ユーザー ロールを表すクラスの型。

TRoleClaim

ロール要求を表すクラスの型。

継承
RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>
派生
実装

コンストラクター

RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>(TContext, IdentityErrorDescriber)

RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim> の新しいインスタンスを作成します。

プロパティ

AutoSaveChanges

CreateAsync、UpdateAsync、DeleteAsync の呼び出し後に変更を永続化するかどうかを示すフラグを取得または設定します。

Context

このストアのデータベース コンテキストを取得します。

ErrorDescriber

現在の操作で IdentityErrorDescriber 発生したエラーの を取得または設定します。

Roles

ストアに含まれるロールのナビゲーション プロパティ。

メソッド

AddClaimAsync(TRole, Claim, CancellationToken)

指定した を claim 指定した に追加します role

ConvertIdFromString(String)

指定 id された を厳密に型指定されたキー オブジェクトに変換します。

ConvertIdToString(TKey)

指定 id された をその文字列表現に変換します。

CreateAsync(TRole, CancellationToken)

非同期操作としてストアに新しいロールを作成します。

CreateRoleClaim(TRole, Claim)

ロール要求を表すエンティティを作成します。

DeleteAsync(TRole, CancellationToken)

非同期操作としてストアからロールを削除します。

Dispose()

ストアを破棄する

FindByIdAsync(String, CancellationToken)

指定した ID を持つロールを非同期操作として検索します。

FindByNameAsync(String, CancellationToken)

指定した正規化された名前を持つロールを非同期操作として検索します。

GetClaimsAsync(TRole, CancellationToken)

指定した role に関連付けられている要求を非同期操作として取得します。

GetNormalizedRoleNameAsync(TRole, CancellationToken)

ロールの正規化された名前を非同期操作として取得します。

GetRoleIdAsync(TRole, CancellationToken)

非同期操作としてストアからロールの ID を取得します。

GetRoleNameAsync(TRole, CancellationToken)

非同期操作としてストアからロールの名前を取得します。

RemoveClaimAsync(TRole, Claim, CancellationToken)

指定した から 指定 claim された を削除します role

SaveChanges(CancellationToken)

現在のストアを保存します。

SetNormalizedRoleNameAsync(TRole, String, CancellationToken)

ロールの正規化された名前を非同期操作として設定します。

SetRoleNameAsync(TRole, String, CancellationToken)

ストア内のロールの名前を非同期操作として設定します。

ThrowIfDisposed()

このクラスが破棄されている場合は をスローします。

UpdateAsync(TRole, CancellationToken)

ストア内のロールを非同期操作として更新します。

適用対象