IdentityEntityFrameworkBuilderExtensions.AddEntityFrameworkStores 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddEntityFrameworkStores<TContext,TKey>(IdentityBuilder) | |
AddEntityFrameworkStores<TContext>(IdentityBuilder) |
添加标识信息存储的实体框架实现。 |
AddEntityFrameworkStores<TContext,TKey>(IdentityBuilder)
public static Microsoft.AspNetCore.Identity.IdentityBuilder AddEntityFrameworkStores<TContext,TKey> (this Microsoft.AspNetCore.Identity.IdentityBuilder builder) where TContext : Microsoft.EntityFrameworkCore.DbContext where TKey : IEquatable<TKey>;
static member AddEntityFrameworkStores : Microsoft.AspNetCore.Identity.IdentityBuilder -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'Context :> Microsoft.EntityFrameworkCore.DbContext and 'Key :> IEquatable<'Key>)
<Extension()>
Public Function AddEntityFrameworkStores(Of TContext As DbContext, TKey As DbContext) (builder As IdentityBuilder) As IdentityBuilder
类型参数
- TContext
- TKey
参数
- builder
- IdentityBuilder
返回
适用于
AddEntityFrameworkStores<TContext>(IdentityBuilder)
添加标识信息存储的实体框架实现。
public static Microsoft.AspNetCore.Identity.IdentityBuilder AddEntityFrameworkStores<TContext> (this Microsoft.AspNetCore.Identity.IdentityBuilder builder) where TContext : Microsoft.EntityFrameworkCore.DbContext;
static member AddEntityFrameworkStores : Microsoft.AspNetCore.Identity.IdentityBuilder -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'Context :> Microsoft.EntityFrameworkCore.DbContext)
<Extension()>
Public Function AddEntityFrameworkStores(Of TContext As DbContext) (builder As IdentityBuilder) As IdentityBuilder
类型参数
- TContext
要使用的实体框架数据库上下文。
参数
- builder
- IdentityBuilder
IdentityBuilder此方法扩展的实例。
返回
IdentityBuilder此方法扩展的实例。