IdentityDbContext<TUser,TRole,TKey> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
IdentityDbContext<TUser,TRole,TKey>() |
初始化此类的新实例。 |
IdentityDbContext<TUser,TRole,TKey>(DbContextOptions) |
初始化数据库上下文的新实例。 |
IdentityDbContext<TUser,TRole,TKey>()
- Source:
- IdentityDbContext.cs
- Source:
- IdentityDbContext.cs
- Source:
- IdentityDbContext.cs
- Source:
- IdentityDbContext.cs
- Source:
- IdentityDbContext.cs
- Source:
- IdentityDbContext.cs
- Source:
- IdentityDbContext.cs
- Source:
- IdentityDbContext.cs
- Source:
- IdentityDbContext.cs
初始化此类的新实例。
protected:
IdentityDbContext();
protected IdentityDbContext ();
Protected Sub New ()
适用于
IdentityDbContext<TUser,TRole,TKey>(DbContextOptions)
- Source:
- IdentityDbContext.cs
- Source:
- IdentityDbContext.cs
- Source:
- IdentityDbContext.cs
- Source:
- IdentityDbContext.cs
- Source:
- IdentityDbContext.cs
- Source:
- IdentityDbContext.cs
- Source:
- IdentityDbContext.cs
- Source:
- IdentityDbContext.cs
- Source:
- IdentityDbContext.cs
初始化数据库上下文的新实例。
public:
IdentityDbContext(Microsoft::EntityFrameworkCore::DbContextOptions ^ options);
public IdentityDbContext (Microsoft.EntityFrameworkCore.DbContextOptions options);
new Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext<'User, 'Role, 'Key (requires 'User :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUser<'Key> and 'Role :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole<'Key> and 'Key :> IEquatable<'Key>)> : Microsoft.EntityFrameworkCore.DbContextOptions -> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext<'User, 'Role, 'Key (requires 'User :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUser<'Key> and 'Role :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole<'Key> and 'Key :> IEquatable<'Key>)>
new Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext<'User, 'Role, 'Key (requires 'User :> Microsoft.AspNetCore.Identity.IdentityUser<'Key> and 'Role :> Microsoft.AspNetCore.Identity.IdentityRole<'Key> and 'Key :> IEquatable<'Key>)> : Microsoft.EntityFrameworkCore.DbContextOptions -> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext<'User, 'Role, 'Key (requires 'User :> Microsoft.AspNetCore.Identity.IdentityUser<'Key> and 'Role :> Microsoft.AspNetCore.Identity.IdentityRole<'Key> and 'Key :> IEquatable<'Key>)>
Public Sub New (options As DbContextOptions)
参数
- options
- DbContextOptions
要使用的 DbContext选项。