Partager via


RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim> Constructeur

Définition

Construit une nouvelle instance de RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>.

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, 'Key, 'UserRole, 'RoleClaim (requires 'Role :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole<'Key, 'UserRole, 'RoleClaim> and 'Context :> Microsoft.EntityFrameworkCore.DbContext and 'Key :> IEquatable<'Key> and 'UserRole :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserRole<'Key> and 'RoleClaim :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRoleClaim<'Key>)> : 'Context * Microsoft.AspNetCore.Identity.IdentityErrorDescriber -> Microsoft.AspNetCore.Identity.EntityFrameworkCore.RoleStore<'Role, 'Context, 'Key, 'UserRole, 'RoleClaim (requires 'Role :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole<'Key, 'UserRole, 'RoleClaim> and 'Context :> Microsoft.EntityFrameworkCore.DbContext and 'Key :> IEquatable<'Key> and 'UserRole :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserRole<'Key> and 'RoleClaim :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRoleClaim<'Key>)>
new Microsoft.AspNetCore.Identity.EntityFrameworkCore.RoleStore<'Role, 'Context, 'Key, 'UserRole, 'RoleClaim (requires 'Role :> Microsoft.AspNetCore.Identity.IdentityRole<'Key> and 'Context :> Microsoft.EntityFrameworkCore.DbContext and 'Key :> IEquatable<'Key> and 'UserRole :> Microsoft.AspNetCore.Identity.IdentityUserRole<'Key> and 'UserRole : (new : unit -> 'UserRole) and 'RoleClaim :> Microsoft.AspNetCore.Identity.IdentityRoleClaim<'Key> and 'RoleClaim : (new : unit -> 'RoleClaim))> : 'Context * Microsoft.AspNetCore.Identity.IdentityErrorDescriber -> Microsoft.AspNetCore.Identity.EntityFrameworkCore.RoleStore<'Role, 'Context, 'Key, 'UserRole, 'RoleClaim (requires 'Role :> Microsoft.AspNetCore.Identity.IdentityRole<'Key> and 'Context :> Microsoft.EntityFrameworkCore.DbContext and 'Key :> IEquatable<'Key> and 'UserRole :> Microsoft.AspNetCore.Identity.IdentityUserRole<'Key> and 'UserRole : (new : unit -> 'UserRole) and 'RoleClaim :> Microsoft.AspNetCore.Identity.IdentityRoleClaim<'Key> and 'RoleClaim : (new : unit -> 'RoleClaim))>
Public Sub New (context As TContext, Optional describer As IdentityErrorDescriber = Nothing)

Paramètres

context
TContext

L’DbContextopérateur

S’applique à