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

Определение

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

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

Параметры

context
DbContext

DbContext.

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