RelationalDbContextOptionsBuilder<TBuilder,TExtension> 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
允许在 上 DbContextOptions执行特定于关系数据库的配置。
public abstract class RelationalDbContextOptionsBuilder<TBuilder,TExtension> where TBuilder : RelationalDbContextOptionsBuilder<TBuilder,TExtension> where TExtension : RelationalOptionsExtension
public abstract class RelationalDbContextOptionsBuilder<TBuilder,TExtension> where TBuilder : RelationalDbContextOptionsBuilder<TBuilder,TExtension> where TExtension : RelationalOptionsExtension, new()
public abstract class RelationalDbContextOptionsBuilder<TBuilder,TExtension> : Microsoft.EntityFrameworkCore.Infrastructure.IRelationalDbContextOptionsBuilderInfrastructure where TBuilder : RelationalDbContextOptionsBuilder<TBuilder,TExtension> where TExtension : RelationalOptionsExtension, new()
type RelationalDbContextOptionsBuilder<'Builder, 'Extension (requires 'Builder :> RelationalDbContextOptionsBuilder<'Builder, 'Extension> and 'Extension :> RelationalOptionsExtension)> = class
type RelationalDbContextOptionsBuilder<'Builder, 'Extension (requires 'Builder :> RelationalDbContextOptionsBuilder<'Builder, 'Extension> and 'Extension :> RelationalOptionsExtension and 'Extension : (new : unit -> 'Extension))> = class
type RelationalDbContextOptionsBuilder<'Builder, 'Extension (requires 'Builder :> RelationalDbContextOptionsBuilder<'Builder, 'Extension> and 'Extension :> RelationalOptionsExtension and 'Extension : (new : unit -> 'Extension))> = class
interface IRelationalDbContextOptionsBuilderInfrastructure
Public MustInherit Class RelationalDbContextOptionsBuilder(Of TBuilder, TExtension)
Public MustInherit Class RelationalDbContextOptionsBuilder(Of TBuilder, TExtension)
Implements IRelationalDbContextOptionsBuilderInfrastructure
类型参数
- TBuilder
- TExtension
- 继承
-
RelationalDbContextOptionsBuilder<TBuilder,TExtension>
- 派生
- 实现
注解
此类的实例通常是从将上下文配置为使用特定关系数据库提供程序的方法返回的。
有关详细信息和示例 ,请参阅使用 DbContextOptions 。
构造函数
RelationalDbContextOptionsBuilder<TBuilder,TExtension>(DbContextOptionsBuilder) |
初始化 RelationalDbContextOptionsBuilder<TBuilder,TExtension> 类的新实例。 |
属性
OptionsBuilder |
获取核心选项生成器。 |
方法
显式接口实现
IRelationalDbContextOptionsBuilderInfrastructure.OptionsBuilder |
获取核心选项生成器。 |