ApiAuthorizationDbContext<TUser> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ApiAuthorizationDbContext<TUser>(DbContextOptions, IOptions<OperationalStoreOptions>)
- Source:
- ApiAuthorizationDbContext.cs
- Source:
- ApiAuthorizationDbContext.cs
- Source:
- ApiAuthorizationDbContext.cs
初始化 ApiAuthorizationDbContext<TUser> 的新实例。
public ApiAuthorizationDbContext (Microsoft.EntityFrameworkCore.DbContextOptions options, Microsoft.Extensions.Options.IOptions<Duende.IdentityServer.EntityFramework.Options.OperationalStoreOptions> operationalStoreOptions);
new Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ApiAuthorizationDbContext<'User (requires 'User :> Microsoft.AspNetCore.Identity.IdentityUser)> : Microsoft.EntityFrameworkCore.DbContextOptions * Microsoft.Extensions.Options.IOptions<Duende.IdentityServer.EntityFramework.Options.OperationalStoreOptions> -> Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ApiAuthorizationDbContext<'User (requires 'User :> Microsoft.AspNetCore.Identity.IdentityUser)>
Public Sub New (options As DbContextOptions, operationalStoreOptions As IOptions(Of OperationalStoreOptions))
参数
- options
- DbContextOptions
- operationalStoreOptions
- IOptions<Duende.IdentityServer.EntityFramework.Options.OperationalStoreOptions>
适用于
ApiAuthorizationDbContext<TUser>(DbContextOptions, IOptions<OperationalStoreOptions>)
- Source:
- ApiAuthorizationDbContext.cs
- Source:
- ApiAuthorizationDbContext.cs
- Source:
- ApiAuthorizationDbContext.cs
初始化 ApiAuthorizationDbContext<TUser> 的新实例。
public:
ApiAuthorizationDbContext(Microsoft::EntityFrameworkCore::DbContextOptions ^ options, Microsoft::Extensions::Options::IOptions<IdentityServer4::EntityFramework::Options::OperationalStoreOptions ^> ^ operationalStoreOptions);
public ApiAuthorizationDbContext (Microsoft.EntityFrameworkCore.DbContextOptions options, Microsoft.Extensions.Options.IOptions<IdentityServer4.EntityFramework.Options.OperationalStoreOptions> operationalStoreOptions);
new Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ApiAuthorizationDbContext<'User (requires 'User :> Microsoft.AspNetCore.Identity.IdentityUser)> : Microsoft.EntityFrameworkCore.DbContextOptions * Microsoft.Extensions.Options.IOptions<IdentityServer4.EntityFramework.Options.OperationalStoreOptions> -> Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ApiAuthorizationDbContext<'User (requires 'User :> Microsoft.AspNetCore.Identity.IdentityUser)>
Public Sub New (options As DbContextOptions, operationalStoreOptions As IOptions(Of OperationalStoreOptions))
参数
- options
- DbContextOptions
- operationalStoreOptions
- IOptions<IdentityServer4.EntityFramework.Options.OperationalStoreOptions>