Op Englesch liesen

Deelen iwwer


IdentityDbContext<TUser,TRole,TKey> Class

Definition

Base class for the Entity Framework database context used for identity.

C#
public class IdentityDbContext<TUser,TRole,TKey> : Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext<TUser,TRole,TKey,Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserClaim<TKey>,Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserRole<TKey>,Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserLogin<TKey>,Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRoleClaim<TKey>,Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserToken<TKey>> where TUser : IdentityUser<TKey> where TRole : IdentityRole<TKey> where TKey : IEquatable<TKey>
C#
public class IdentityDbContext<TUser,TRole,TKey> : Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext<TUser,TRole,TKey,Microsoft.AspNetCore.Identity.IdentityUserClaim<TKey>,Microsoft.AspNetCore.Identity.IdentityUserRole<TKey>,Microsoft.AspNetCore.Identity.IdentityUserLogin<TKey>,Microsoft.AspNetCore.Identity.IdentityRoleClaim<TKey>,Microsoft.AspNetCore.Identity.IdentityUserToken<TKey>> where TUser : IdentityUser<TKey> where TRole : IdentityRole<TKey> where TKey : IEquatable<TKey>

Type Parameters

TUser

The type of user objects.

TRole

The type of role objects.

TKey

The type of the primary key for users and roles.

Inheritance
IdentityDbContext<TUser,TRole,TKey>
Inheritance
Derived

Constructors

IdentityDbContext<TUser,TRole,TKey>()

Initializes a new instance of the class.

IdentityDbContext<TUser,TRole,TKey>(DbContextOptions)

Initializes a new instance of the db context.

Properties

Methods

Applies to

Produkt Versiounen
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0