IdentityEntityFrameworkBuilderExtensions.AddEntityFrameworkStores 方法

定义

重载

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)

Source:
IdentityEntityFrameworkBuilderExtensions.cs
Source:
IdentityEntityFrameworkBuilderExtensions.cs
Source:
IdentityEntityFrameworkBuilderExtensions.cs
Source:
IdentityEntityFrameworkBuilderExtensions.cs
Source:
IdentityEntityFrameworkBuilderExtensions.cs
Source:
IdentityEntityFrameworkBuilderExtensions.cs
Source:
IdentityEntityFrameworkBuilderExtensions.cs
Source:
IdentityEntityFrameworkBuilderExtensions.cs
Source:
IdentityEntityFrameworkBuilderExtensions.cs

添加标识信息存储的实体框架实现。

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此方法扩展的实例。

适用于