RoleStore<TRole,TContext>(TContext, IdentityErrorDescriber) Конструктор

Определение

Создает новый экземпляр класса RoleStore<TRole,TContext>.

public RoleStore (TContext context, Microsoft.AspNetCore.Identity.IdentityErrorDescriber describer = default);
public RoleStore (TContext context, Microsoft.AspNetCore.Identity.IdentityErrorDescriber? describer = default);
new Microsoft.AspNetCore.Identity.EntityFrameworkCore.RoleStore<'Role, 'Context (requires 'Role :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole<string> and 'Context :> Microsoft.EntityFrameworkCore.DbContext)> : 'Context * Microsoft.AspNetCore.Identity.IdentityErrorDescriber -> Microsoft.AspNetCore.Identity.EntityFrameworkCore.RoleStore<'Role, 'Context (requires 'Role :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole<string> and 'Context :> Microsoft.EntityFrameworkCore.DbContext)>
new Microsoft.AspNetCore.Identity.EntityFrameworkCore.RoleStore<'Role, 'Context (requires 'Role :> Microsoft.AspNetCore.Identity.IdentityRole<string> and 'Context :> Microsoft.EntityFrameworkCore.DbContext)> : 'Context * Microsoft.AspNetCore.Identity.IdentityErrorDescriber -> Microsoft.AspNetCore.Identity.EntityFrameworkCore.RoleStore<'Role, 'Context (requires 'Role :> Microsoft.AspNetCore.Identity.IdentityRole<string> and 'Context :> Microsoft.EntityFrameworkCore.DbContext)>
Public Sub New (context As TContext, Optional describer As IdentityErrorDescriber = Nothing)

Параметры

context
TContext

DbContext.

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