Share via


IdentityDbContext Class

Definition

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

public ref class IdentityDbContext : Microsoft::AspNetCore::Identity::EntityFrameworkCore::IdentityDbContext<Microsoft::AspNetCore::Identity::EntityFrameworkCore::IdentityUser ^, Microsoft::AspNetCore::Identity::EntityFrameworkCore::IdentityRole ^, System::String ^>
public ref class IdentityDbContext : Microsoft::AspNetCore::Identity::EntityFrameworkCore::IdentityDbContext<Microsoft::AspNetCore::Identity::IdentityUser ^, Microsoft::AspNetCore::Identity::IdentityRole ^, System::String ^>
public class IdentityDbContext : Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext<Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUser,Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole,string>
public class IdentityDbContext : Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext<Microsoft.AspNetCore.Identity.IdentityUser,Microsoft.AspNetCore.Identity.IdentityRole,string>
type IdentityDbContext = class
    inherit IdentityDbContext<IdentityUser, IdentityRole, string>
Public Class IdentityDbContext
Inherits IdentityDbContext(Of IdentityUser, IdentityRole, String)
Inheritance
Inheritance

Constructors

IdentityDbContext()

Initializes a new instance of the IdentityDbContext class.

IdentityDbContext(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