Class UserStore<TKey, TUser, TRole>
Represents a new instance of a persistence store for the specified user and role types.
public class UserStore<TKey, TUser, TRole> : UserStore<TKey, TUser, TRole, IdentityUserClaim<TKey>, IdentityUserRole<TKey>, IdentityUserLogin<TKey>, IdentityUserToken<TKey>>, IUserLoginStore<TUser>, IUserRoleStore<TUser>, IUserClaimStore<TUser>, IUserPasswordStore<TUser>, IUserSecurityStampStore<TUser>, IUserEmailStore<TUser>, IUserLockoutStore<TUser>, IUserPhoneNumberStore<TUser>, IQueryableUserStore<TUser>, IUserTwoFactorStore<TUser>, IUserAuthenticationTokenStore<TUser>, IUserAuthenticatorKeyStore<TUser>, IUserStore<TUser>, IDisposable where TKey : IEquatable<TKey> where TUser : IdentityUser<TKey> where TRole : IdentityRole<TKey>
Type Parameters
TKeyThe type of the primary key for a role.
TUserThe type representing a user.
TRoleThe type representing a role.
- Inheritance
-
objectUserStore<TKey, TUser, TRole, IdentityUserClaim<TKey>, IdentityUserRole<TKey>, IdentityUserLogin<TKey>, IdentityUserToken<TKey>>UserStore<TKey, TUser, TRole>
- Implements
-
IUserLoginStore<TUser>IUserRoleStore<TUser>IUserClaimStore<TUser>IUserPasswordStore<TUser>IUserSecurityStampStore<TUser>IUserEmailStore<TUser>IUserLockoutStore<TUser>IUserPhoneNumberStore<TUser>IQueryableUserStore<TUser>IUserTwoFactorStore<TUser>IUserAuthenticatorKeyStore<TUser>IUserStore<TUser>
- Derived
- Inherited Members
Constructors
UserStore(IConnectionFactory, IdentityErrorDescriber)
Constructs a new instance of UserStore<TKey, TUser, TRole>.
public UserStore(IConnectionFactory factory, IdentityErrorDescriber describer = null)
Parameters
factoryIConnectionFactorydescriberIdentityErrorDescriber
Methods
CreateUserClaim(TUser, Claim)
Called to create a new instance of a IdentityUserClaim<TKey>.
protected override IdentityUserClaim<TKey> CreateUserClaim(TUser user, Claim claim)
Parameters
userTUserThe associated user.
claimClaimThe associated claim.
Returns
- IdentityUserClaim<TKey>
CreateUserLogin(TUser, UserLoginInfo)
Called to create a new instance of a IdentityUserLogin<TKey>.
protected override IdentityUserLogin<TKey> CreateUserLogin(TUser user, UserLoginInfo login)
Parameters
userTUserThe associated user.
loginUserLoginInfoThe sasociated login.
Returns
- IdentityUserLogin<TKey>
CreateUserRole(TUser, TRole)
Called to create a new instance of a IdentityUserRole<TKey>.
protected override IdentityUserRole<TKey> CreateUserRole(TUser user, TRole role)
Parameters
userTUserThe associated user.
roleTRoleThe associated role.
Returns
- IdentityUserRole<TKey>
CreateUserToken(TUser, string, string, string)
Called to create a new instance of a IdentityUserToken<TKey>.
protected override IdentityUserToken<TKey> CreateUserToken(TUser user, string loginProvider, string name, string value)
Parameters
userTUserThe associated user.
loginProviderstringThe associated login provider.
namestringThe name of the user token.
valuestringThe value of the user token.
Returns
- IdentityUserToken<TKey>