UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken> 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示指定之使用者和角色類型之持續性存放區的新實例。
generic <typename TUser, typename TRole, typename TContext, typename TKey, typename TUserClaim, typename TUserRole, typename TUserLogin, typename TUserToken>
where TUser : IdentityUser<TKey, TUserClaim, TUserRole, TUserLogin> where TRole : IdentityRole<TKey, TUserRole, IdentityRoleClaim<TKey> ^> where TContext : DbContext where TKey : IEquatable<TKey> where TUserClaim : IdentityUserClaim<TKey> where TUserRole : IdentityUserRole<TKey> where TUserLogin : IdentityUserLogin<TKey> where TUserToken : IdentityUserToken<TKey>public ref class UserStore abstract : IDisposable, Microsoft::AspNetCore::Identity::IQueryableUserStore<TUser>, Microsoft::AspNetCore::Identity::IUserAuthenticationTokenStore<TUser>, Microsoft::AspNetCore::Identity::IUserClaimStore<TUser>, Microsoft::AspNetCore::Identity::IUserEmailStore<TUser>, Microsoft::AspNetCore::Identity::IUserLockoutStore<TUser>, Microsoft::AspNetCore::Identity::IUserLoginStore<TUser>, Microsoft::AspNetCore::Identity::IUserPasswordStore<TUser>, Microsoft::AspNetCore::Identity::IUserPhoneNumberStore<TUser>, Microsoft::AspNetCore::Identity::IUserRoleStore<TUser>, Microsoft::AspNetCore::Identity::IUserSecurityStampStore<TUser>, Microsoft::AspNetCore::Identity::IUserStore<TUser>, Microsoft::AspNetCore::Identity::IUserTwoFactorStore<TUser>
generic <typename TUser, typename TRole, typename TContext, typename TKey, typename TUserClaim, typename TUserRole, typename TUserLogin, typename TUserToken>
where TUser : IdentityUser<TKey, TUserClaim, TUserRole, TUserLogin> where TRole : IdentityRole<TKey, TUserRole, IdentityRoleClaim<TKey> ^> where TContext : DbContext where TKey : IEquatable<TKey> where TUserClaim : IdentityUserClaim<TKey> where TUserRole : IdentityUserRole<TKey> where TUserLogin : IdentityUserLogin<TKey> where TUserToken : IdentityUserToken<TKey>public ref class UserStore abstract : Microsoft::AspNetCore::Identity::EntityFrameworkCore::UserStore<TUser, TRole, TContext, TKey, TUserClaim, TUserRole, TUserLogin, TUserToken, Microsoft::AspNetCore::Identity::EntityFrameworkCore::IdentityRoleClaim<TKey> ^>
public abstract class UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken> : IDisposable, Microsoft.AspNetCore.Identity.IQueryableUserStore<TUser>, Microsoft.AspNetCore.Identity.IUserAuthenticationTokenStore<TUser>, Microsoft.AspNetCore.Identity.IUserClaimStore<TUser>, Microsoft.AspNetCore.Identity.IUserEmailStore<TUser>, Microsoft.AspNetCore.Identity.IUserLockoutStore<TUser>, Microsoft.AspNetCore.Identity.IUserLoginStore<TUser>, Microsoft.AspNetCore.Identity.IUserPasswordStore<TUser>, Microsoft.AspNetCore.Identity.IUserPhoneNumberStore<TUser>, Microsoft.AspNetCore.Identity.IUserRoleStore<TUser>, Microsoft.AspNetCore.Identity.IUserSecurityStampStore<TUser>, Microsoft.AspNetCore.Identity.IUserStore<TUser>, Microsoft.AspNetCore.Identity.IUserTwoFactorStore<TUser> where TUser : IdentityUser<TKey,TUserClaim,TUserRole,TUserLogin> where TRole : IdentityRole<TKey,TUserRole,IdentityRoleClaim<TKey>> where TContext : DbContext where TKey : IEquatable<TKey> where TUserClaim : IdentityUserClaim<TKey> where TUserRole : IdentityUserRole<TKey> where TUserLogin : IdentityUserLogin<TKey> where TUserToken : IdentityUserToken<TKey>
public abstract class UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken> : Microsoft.AspNetCore.Identity.EntityFrameworkCore.UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRoleClaim<TKey>> where TUser : IdentityUser<TKey,TUserClaim,TUserRole,TUserLogin> where TRole : IdentityRole<TKey,TUserRole,IdentityRoleClaim<TKey>> where TContext : DbContext where TKey : IEquatable<TKey> where TUserClaim : IdentityUserClaim<TKey> where TUserRole : IdentityUserRole<TKey> where TUserLogin : IdentityUserLogin<TKey> where TUserToken : IdentityUserToken<TKey>
type UserStore<'User, 'Role, 'Context, 'Key, 'UserClaim, 'UserRole, 'UserLogin, 'UserToken (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin> and 'Role :> IdentityRole<'Key, 'UserRole, IdentityRoleClaim<'Key>> and 'Context :> DbContext and 'Key :> IEquatable<'Key> and 'UserClaim :> IdentityUserClaim<'Key> and 'UserRole :> IdentityUserRole<'Key> and 'UserLogin :> IdentityUserLogin<'Key> and 'UserToken :> IdentityUserToken<'Key>)> = class
interface IUserLoginStore<'User (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin>)>
interface IUserStore<'User (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin>)>
interface IDisposable
interface IUserRoleStore<'User (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin>)>
interface IUserClaimStore<'User (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin>)>
interface IUserPasswordStore<'User (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin>)>
interface IUserSecurityStampStore<'User (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin>)>
interface IUserEmailStore<'User (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin>)>
interface IUserLockoutStore<'User (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin>)>
interface IUserPhoneNumberStore<'User (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin>)>
interface IQueryableUserStore<'User (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin>)>
interface IUserTwoFactorStore<'User (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin>)>
interface IUserAuthenticationTokenStore<'User (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin>)>
type UserStore<'User, 'Role, 'Context, 'Key, 'UserClaim, 'UserRole, 'UserLogin, 'UserToken (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin> and 'Role :> IdentityRole<'Key, 'UserRole, IdentityRoleClaim<'Key>> and 'Context :> DbContext and 'Key :> IEquatable<'Key> and 'UserClaim :> IdentityUserClaim<'Key> and 'UserRole :> IdentityUserRole<'Key> and 'UserLogin :> IdentityUserLogin<'Key> and 'UserToken :> IdentityUserToken<'Key>)> = class
inherit UserStore<'User, 'Role, 'Context, 'Key, 'UserClaim, 'UserRole, 'UserLogin, 'UserToken, IdentityRoleClaim<'Key> (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin> and 'Role :> IdentityRole<'Key, 'UserRole, IdentityRoleClaim<'Key>> and 'Context :> DbContext and 'Key :> IEquatable<'Key> and 'UserClaim :> IdentityUserClaim<'Key> and 'UserRole :> IdentityUserRole<'Key> and 'UserLogin :> IdentityUserLogin<'Key> and 'UserToken :> IdentityUserToken<'Key>)>
Public MustInherit Class UserStore(Of TUser, TRole, TContext, TKey, TUserClaim, TUserRole, TUserLogin, TUserToken)
Implements IDisposable, IQueryableUserStore(Of TUser), IUserAuthenticationTokenStore(Of TUser), IUserClaimStore(Of TUser), IUserEmailStore(Of TUser), IUserLockoutStore(Of TUser), IUserLoginStore(Of TUser), IUserPasswordStore(Of TUser), IUserPhoneNumberStore(Of TUser), IUserRoleStore(Of TUser), IUserSecurityStampStore(Of TUser), IUserStore(Of TUser), IUserTwoFactorStore(Of TUser)
Public MustInherit Class UserStore(Of TUser, TRole, TContext, TKey, TUserClaim, TUserRole, TUserLogin, TUserToken)
Inherits UserStore(Of TUser, TRole, TContext, TKey, TUserClaim, TUserRole, TUserLogin, TUserToken, IdentityRoleClaim(Of TKey))
類型參數
- TUser
代表使用者的型別。
- TRole
表示角色的型別。
- TContext
用來存取存放區的資料內容類別別類型。
- TKey
角色的主鍵類型。
- TUserClaim
表示宣告的型別。
- TUserRole
表示使用者角色的型別。
- TUserLogin
表示使用者外部登入的型別。
- TUserToken
表示使用者權杖的型別。
- 繼承
-
UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken>
- 繼承
-
UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,IdentityRoleClaim<TKey>>UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken>
- 實作
-
IQueryableUserStore<TUser> IUserAuthenticationTokenStore<TUser> IUserClaimStore<TUser> IUserEmailStore<TUser> IUserLockoutStore<TUser> IUserLoginStore<TUser> IUserPasswordStore<TUser> IUserPhoneNumberStore<TUser> IUserRoleStore<TUser> IUserSecurityStampStore<TUser> IUserStore<TUser> IUserTwoFactorStore<TUser> IDisposable
建構函式
UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken>(TContext, IdentityErrorDescriber) |
建立 UserStore 的新執行個體。 |
屬性
AutoSaveChanges |
取得或設定旗標,指出呼叫 CreateAsync、UpdateAsync 和 DeleteAsync 之後,是否應該保存變更。 |
AutoSaveChanges |
取得或設定旗標,指出呼叫 CreateAsync、UpdateAsync 和 DeleteAsync 之後,是否應該保存變更。 (繼承來源 UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>) |
Context |
取得這個存放區的資料庫內容。 |
Context |
取得這個存放區的資料庫內容。 (繼承來源 UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>) |
ErrorDescriber |
取得或設定 IdentityErrorDescriber 目前作業發生之任何錯誤的 。 |
ErrorDescriber |
取得或設定 IdentityErrorDescriber 目前作業發生之任何錯誤的 。 (繼承來源 UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>) |
Users |
存放區包含之使用者的導覽屬性。 |
Users |
存放區包含之使用者的導覽屬性。 (繼承來源 UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>) |