Compartir a través de


UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken> Constructor

Definición

Crea una nueva instancia de 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)

Parámetros

context
TContext

Contexto que se usa para acceder al almacén.

describer
IdentityErrorDescriber

utilizado IdentityErrorDescriber para describir los errores del almacén.

Se aplica a