IdentityDbContext 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
用於身分識別的 Entity Framework 資料庫內容的基類。
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)
- 繼承
-
IdentityDbContext
- 繼承
-
IdentityDbContext<TUser,TRole,TKey,IdentityUserClaim<TKey>,IdentityUserRole<TKey>,IdentityUserLogin<TKey>,IdentityRoleClaim<TKey>,IdentityUserToken<TKey>>IdentityDbContext
建構函式
IdentityDbContext() |
初始化 IdentityDbContext 類別的新執行個體。 |
IdentityDbContext(DbContextOptions) |
初始化 IdentityDbContext 的新執行個體。 |
屬性
方法
OnModelCreating(ModelBuilder) |
設定身分識別架構所需的架構。 (繼承來源 IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>) |