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>, IUserStore<TUser>, IDisposable where TKey : IEquatable<TKey> where TUser : IdentityUser<TKey> where TRole : IdentityRole<TKey>
Type Parameters
TKey
The type of the primary key for a role.
TUser
The type representing a user.
TRole
The type representing a role.
- Inheritance
-
UserStore<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>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
factory
IConnectionFactorydescriber
IdentityErrorDescriber
Methods
CreateUserClaim(TUser, Claim)
Called to create a new instance of a IdentityUserClaim<TKey>.
protected override IdentityUserClaim<TKey> CreateUserClaim(TUser user, Claim claim)
Parameters
user
TUserThe associated user.
claim
ClaimThe 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
user
TUserThe associated user.
login
UserLoginInfoThe 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
user
TUserThe associated user.
role
TRoleThe 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
user
TUserThe associated user.
loginProvider
stringThe associated login provider.
name
stringThe name of the user token.
value
stringThe value of the user token.
Returns
- IdentityUserToken<TKey>