IdentityEntityFrameworkBuilderExtensions.AddEntityFrameworkStores 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddEntityFrameworkStores<TContext,TKey>(IdentityBuilder) | |
AddEntityFrameworkStores<TContext>(IdentityBuilder) |
新增身分識別資訊存放區的 Entity Framework 實作。 |
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)
新增身分識別資訊存放區的 Entity Framework 實作。
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
要使用的 Entity Framework 資料庫內容。
參數
- builder
- IdentityBuilder
IdentityBuilder這個方法擴充的實例。
傳回
IdentityBuilder這個方法擴充的實例。