Share via


ApiAuthorizationDbContext<TUser> 构造函数

定义

重载

ApiAuthorizationDbContext<TUser>(DbContextOptions, IOptions<OperationalStoreOptions>)

初始化 ApiAuthorizationDbContext<TUser> 的新实例。

ApiAuthorizationDbContext<TUser>(DbContextOptions, IOptions<OperationalStoreOptions>)

初始化 ApiAuthorizationDbContext<TUser> 的新实例。

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))

参数

operationalStoreOptions
IOptions<Duende.IdentityServer.EntityFramework.Options.OperationalStoreOptions>

IOptions<TOptions>

适用于

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))

参数

operationalStoreOptions
IOptions<IdentityServer4.EntityFramework.Options.OperationalStoreOptions>

IOptions<TOptions>

适用于