UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken> Конструктор

Определение

Создает новый экземпляр UserStore.

public UserStore (TContext context, Microsoft.AspNetCore.Identity.IdentityErrorDescriber describer = default);
new Microsoft.AspNetCore.Identity.EntityFrameworkCore.UserStore<'User, 'Role, 'Context, 'Key, 'UserClaim, 'UserRole, 'UserLogin, 'UserToken (requires 'User :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin> and 'Role :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole<'Key, 'UserRole, Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRoleClaim<'Key>> and 'Context :> Microsoft.EntityFrameworkCore.DbContext and 'Key :> IEquatable<'Key> and 'UserClaim :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserClaim<'Key> and 'UserRole :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserRole<'Key> and 'UserLogin :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserLogin<'Key> and 'UserToken :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserToken<'Key>)> : 'Context * Microsoft.AspNetCore.Identity.IdentityErrorDescriber -> Microsoft.AspNetCore.Identity.EntityFrameworkCore.UserStore<'User, 'Role, 'Context, 'Key, 'UserClaim, 'UserRole, 'UserLogin, 'UserToken (requires 'User :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin> and 'Role :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole<'Key, 'UserRole, Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRoleClaim<'Key>> and 'Context :> Microsoft.EntityFrameworkCore.DbContext and 'Key :> IEquatable<'Key> and 'UserClaim :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserClaim<'Key> and 'UserRole :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserRole<'Key> and 'UserLogin :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserLogin<'Key> and 'UserToken :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserToken<'Key>)>
Public Sub New (context As TContext, Optional describer As IdentityErrorDescriber = Nothing)

Параметры

context
TContext

Контекст, используемый для доступа к хранилищу.

describer
IdentityErrorDescriber

Объект , используемый IdentityErrorDescriber для описания ошибок хранения.

Применяется к