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 |
取得核心選項產生器。 |