UserStore<TUser, TRole, TContext, TKey> Class¶
Represents a new instance of a persistence store for the specified user and role types.
- Namespace
Microsoft.AspNetCore.Identity.EntityFrameworkCore
- Assemblies
- Microsoft.AspNetCore.Identity.EntityFrameworkCore
Inheritance Hierarchy¶
System.Object
Microsoft.AspNetCore.Identity.EntityFrameworkCore.UserStore{{TUser},{TRole},{TContext},{TKey},Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserClaim{{TKey}},Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserRole{{TKey}},Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserLogin{{TKey}},Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserToken{{TKey}}}
Microsoft.AspNetCore.Identity.EntityFrameworkCore.UserStore<TUser, TRole, TContext, TKey>
Syntax¶
public class UserStore<TUser, TRole, TContext, TKey> : UserStore<TUser, TRole, TContext, TKey, 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 TUser : IdentityUser<TKey> where TRole : IdentityRole<TKey> where TContext : DbContext where TKey : IEquatable<TKey>
-
class
Microsoft.AspNetCore.Identity.EntityFrameworkCore.
UserStore<TUser, TRole, TContext, TKey>
¶
Constructors¶
-
UserStore
(TContext, Microsoft.AspNetCore.Identity.IdentityErrorDescriber)¶ public UserStore(TContext context, IdentityErrorDescriber describer = null)
-
Methods¶
-
CreateUserClaim
(TUser, System.Security.Claims.Claim)¶ Return type: Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserClaim<TKey> protected override IdentityUserClaim<TKey> CreateUserClaim(TUser user, Claim claim)
-
CreateUserLogin
(TUser, Microsoft.AspNetCore.Identity.UserLoginInfo)¶ Return type: Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserLogin<TKey> protected override IdentityUserLogin<TKey> CreateUserLogin(TUser user, UserLoginInfo login)
-
CreateUserRole
(TUser, TRole)¶ Return type: Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserRole<TKey> protected override IdentityUserRole<TKey> CreateUserRole(TUser user, TRole role)
-
CreateUserToken
(TUser, System.String, System.String, System.String)¶ Return type: Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserToken<TKey> protected override IdentityUserToken<TKey> CreateUserToken(TUser user, string loginProvider, string name, string value)
-