Share via


RoleStore<TRole>(DbContext, IdentityErrorDescriber) Constructor

Definition

Constructs a new instance of 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)

Parameters

context
DbContext

The DbContext.

Applies to