IdentityDbContext<TUser> Class

Definition

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

generic <typename TUser>
 where TUser : IdentityUserpublic ref class IdentityDbContext : Microsoft::AspNetCore::Identity::EntityFrameworkCore::IdentityDbContext<TUser, Microsoft::AspNetCore::Identity::EntityFrameworkCore::IdentityRole ^, System::String ^>
generic <typename TUser>
 where TUser : IdentityUserpublic ref class IdentityDbContext : Microsoft::AspNetCore::Identity::EntityFrameworkCore::IdentityDbContext<TUser, Microsoft::AspNetCore::Identity::IdentityRole ^, System::String ^>
public class IdentityDbContext<TUser> : Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext<TUser,Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole,string> where TUser : IdentityUser
public class IdentityDbContext<TUser> : Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext<TUser,Microsoft.AspNetCore.Identity.IdentityRole,string> where TUser : IdentityUser
type IdentityDbContext<'User (requires 'User :> IdentityUser)> = class
    inherit IdentityDbContext<'User, IdentityRole, string (requires 'User :> IdentityUser)>
Public Class IdentityDbContext(Of TUser)
Inherits IdentityDbContext(Of TUser, IdentityRole, String)

Type Parameters

TUser

The type of the user objects.

Inheritance
IdentityDbContext<TUser>
Inheritance
Derived

Constructors

IdentityDbContext<TUser>()

Initializes a new instance of the IdentityDbContext class.

IdentityDbContext<TUser>(DbContextOptions)

Initializes a new instance of IdentityDbContext.

Properties

RoleClaims

Gets or sets the DbSet<TEntity> of role claims.

(Inherited from IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)
Roles

Gets or sets the DbSet<TEntity> of roles.

(Inherited from IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)
SchemaVersion

Gets the schema version used for versioning.

(Inherited from IdentityUserContext<TUser,TKey,TUserClaim,TUserLogin,TUserToken>)
UserClaims

Gets or sets the DbSet<TEntity> of User claims.

(Inherited from IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)
UserLogins

Gets or sets the DbSet<TEntity> of User logins.

(Inherited from IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)
UserRoles

Gets or sets the DbSet<TEntity> of User roles.

(Inherited from IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)
Users

Gets or sets the DbSet<TEntity> of Users.

(Inherited from IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)
UserTokens

Gets or sets the DbSet<TEntity> of User tokens.

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

Methods

OnModelCreating(ModelBuilder)

Configures the schema needed for the identity framework.

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

Applies to