Table of Contents

Class UserStore<TKey, TUser, TRole>

Namespace
LinqToDB.Identity
Assembly
LinqToDB.Identity.dll

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

IConnectionFactory

describer IdentityErrorDescriber

The 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 TUser

The associated user.

claim Claim

The 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 TUser

The associated user.

login UserLoginInfo

The 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 TUser

The associated user.

role TRole

The 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 TUser

The associated user.

loginProvider string

The associated login provider.

name string

The name of the user token.

value string

The value of the user token.

Returns

IdentityUserToken<TKey>