IdentityDbContext<TUser> 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
用于标识的实体框架数据库上下文的基类。
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)
类型参数
- TUser
用户对象的类型。
- 继承
-
IdentityDbContext<TUser>
- 继承
-
IdentityDbContext<TUser,TRole,TKey,IdentityUserClaim<TKey>,IdentityUserRole<TKey>,IdentityUserLogin<TKey>,IdentityRoleClaim<TKey>,IdentityUserToken<TKey>>IdentityDbContext<TUser>
- 派生
构造函数
IdentityDbContext<TUser>() |
初始化 IdentityDbContext 类的新实例。 |
IdentityDbContext<TUser>(DbContextOptions) |
初始化 IdentityDbContext 的新实例。 |
属性
方法
OnModelCreating(ModelBuilder) |
配置标识框架所需的架构。 (继承自 IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>) |