Język

IdentityDbContext Klasa

Definicja

Klasa bazowa dla kontekstu bazy danych platformy Entity Framework używanego do obsługi tożsamości.

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)
Dziedziczenie
Dziedziczenie

Konstruktory

Nazwisko Opis
IdentityDbContext()

Inicjuje nowe wystąpienie klasy IdentityDbContext.

IdentityDbContext(DbContextOptions)

Inicjuje nowe wystąpienie klasy IdentityDbContext.

Właściwości

Nazwisko Opis
RoleClaims

Pobiera lub ustawia DbSet<TEntity> oświadczenia roli.

(Odziedziczone po IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)
Roles

Pobiera lub ustawia DbSet<TEntity> role.

(Odziedziczone po IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)
SchemaVersion

Pobiera wersję schematu używaną do przechowywania wersji.

(Odziedziczone po IdentityUserContext<TUser,TKey,TUserClaim,TUserLogin,TUserToken>)
UserClaims

Pobiera lub ustawia DbSet<TEntity> oświadczenia użytkownika.

(Odziedziczone po IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)
UserLogins

Pobiera lub ustawia DbSet<TEntity> identyfikator logowania użytkownika.

(Odziedziczone po IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)
UserRoles

Pobiera lub ustawia DbSet<TEntity> role użytkownika.

(Odziedziczone po IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)
Users

Pobiera lub ustawia wartość DbSet<TEntity> użytkownicy.

(Odziedziczone po IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)
UserTokens

Pobiera lub ustawia DbSet<TEntity> tokeny użytkownika.

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

Metody

Nazwisko Opis
OnModelCreating(ModelBuilder)

Konfiguruje schemat wymagany dla platformy tożsamości.

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

Dotyczy