Share via


IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken,TUserPasskey> Constructors

Definition

Overloads

IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken,TUserPasskey>()

Source:
IdentityDbContext.cs

Initializes a new instance of the class.

protected IdentityDbContext();
Protected Sub New ()

Applies to

IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken,TUserPasskey>(DbContextOptions)

Source:
IdentityDbContext.cs

Initializes a new instance of the class.

public IdentityDbContext(Microsoft.EntityFrameworkCore.DbContextOptions options);
new Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext<'User, 'Role, 'Key, 'UserClaim, 'UserRole, 'UserLogin, 'RoleClaim, 'UserToken, 'UserPasskey (requires 'User :> Microsoft.AspNetCore.Identity.IdentityUser<'Key> and 'Role :> Microsoft.AspNetCore.Identity.IdentityRole<'Key> and 'Key :> IEquatable<'Key> and 'UserClaim :> Microsoft.AspNetCore.Identity.IdentityUserClaim<'Key> and 'UserRole :> Microsoft.AspNetCore.Identity.IdentityUserRole<'Key> and 'UserLogin :> Microsoft.AspNetCore.Identity.IdentityUserLogin<'Key> and 'RoleClaim :> Microsoft.AspNetCore.Identity.IdentityRoleClaim<'Key> and 'UserToken :> Microsoft.AspNetCore.Identity.IdentityUserToken<'Key> and 'UserPasskey :> Microsoft.AspNetCore.Identity.IdentityUserPasskey<'Key>)> : Microsoft.EntityFrameworkCore.DbContextOptions -> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext<'User, 'Role, 'Key, 'UserClaim, 'UserRole, 'UserLogin, 'RoleClaim, 'UserToken, 'UserPasskey (requires 'User :> Microsoft.AspNetCore.Identity.IdentityUser<'Key> and 'Role :> Microsoft.AspNetCore.Identity.IdentityRole<'Key> and 'Key :> IEquatable<'Key> and 'UserClaim :> Microsoft.AspNetCore.Identity.IdentityUserClaim<'Key> and 'UserRole :> Microsoft.AspNetCore.Identity.IdentityUserRole<'Key> and 'UserLogin :> Microsoft.AspNetCore.Identity.IdentityUserLogin<'Key> and 'RoleClaim :> Microsoft.AspNetCore.Identity.IdentityRoleClaim<'Key> and 'UserToken :> Microsoft.AspNetCore.Identity.IdentityUserToken<'Key> and 'UserPasskey :> Microsoft.AspNetCore.Identity.IdentityUserPasskey<'Key>)>
Public Sub New (options As DbContextOptions)

Parameters

options
DbContextOptions

The options to be used by a DbContext.

Applies to