IdentityDbContext<TUser> 類別
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
用於身分識別的 Entity Framework 資料庫內容的基類。
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 ^>
C#
public class IdentityDbContext<TUser> : Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext<TUser,Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole,string> where TUser : IdentityUser
C#
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)
- TUser
使用者物件的類型。
- 繼承
-
IdentityDbContext<TUser>
- 繼承
-
IdentityDbContext<TUser,TRole,TKey,IdentityUserClaim<TKey>,IdentityUserRole<TKey>,IdentityUserLogin<TKey>,IdentityRoleClaim<TKey>,IdentityUserToken<TKey>>IdentityDbContext<TUser>
- 衍生
Identity |
初始化 IdentityDbContext 類別的新執行個體。 |
Identity |
初始化 IdentityDbContext 的新執行個體。 |
On |
設定身分識別架構所需的架構。 (繼承來源 IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>) |
產品 | 版本 |
---|---|
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 |