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>) |