Share via


RoleStore<TRole>(DbContext, IdentityErrorDescriber) Constructeur

Définition

Construit une nouvelle instance de 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)

Paramètres

context
DbContext

L’DbContextopérateur

S’applique à