Sdílet prostřednictvím


RoleStore<TRole>(DbContext, IdentityErrorDescriber) Konstruktor

Definice

Vytvoří novou instanci objektu 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)

Parametry

context
DbContext

Hodnota DbContext

Platí pro