共用方式為


RelationalDbContextOptionsBuilder<TBuilder,TExtension> 建構函式

定義

初始化 RelationalDbContextOptionsBuilder<TBuilder,TExtension> 類別的新執行個體。

protected RelationalDbContextOptionsBuilder (Microsoft.EntityFrameworkCore.DbContextOptionsBuilder optionsBuilder);
new Microsoft.EntityFrameworkCore.Infrastructure.RelationalDbContextOptionsBuilder<'Builder, 'Extension (requires 'Builder :> Microsoft.EntityFrameworkCore.Infrastructure.RelationalDbContextOptionsBuilder<'Builder, 'Extension> and 'Extension :> Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension)> : Microsoft.EntityFrameworkCore.DbContextOptionsBuilder -> Microsoft.EntityFrameworkCore.Infrastructure.RelationalDbContextOptionsBuilder<'Builder, 'Extension (requires 'Builder :> Microsoft.EntityFrameworkCore.Infrastructure.RelationalDbContextOptionsBuilder<'Builder, 'Extension> and 'Extension :> Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension)>
new Microsoft.EntityFrameworkCore.Infrastructure.RelationalDbContextOptionsBuilder<'Builder, 'Extension (requires 'Builder :> Microsoft.EntityFrameworkCore.Infrastructure.RelationalDbContextOptionsBuilder<'Builder, 'Extension> and 'Extension :> Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension and 'Extension : (new : unit -> 'Extension))> : Microsoft.EntityFrameworkCore.DbContextOptionsBuilder -> Microsoft.EntityFrameworkCore.Infrastructure.RelationalDbContextOptionsBuilder<'Builder, 'Extension (requires 'Builder :> Microsoft.EntityFrameworkCore.Infrastructure.RelationalDbContextOptionsBuilder<'Builder, 'Extension> and 'Extension :> Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension and 'Extension : (new : unit -> 'Extension))>
Protected Sub New (optionsBuilder As DbContextOptionsBuilder)

參數

optionsBuilder
DbContextOptionsBuilder

核心選項產生器。

適用於