共用方式為


DbContextOptionsBuilder<TContext> 建構函式

定義

多載

DbContextOptionsBuilder<TContext>()

初始化 未設定任何選項之 DbContextOptionsBuilder<TContext> 類別的新實例。

DbContextOptionsBuilder<TContext>(DbContextOptions<TContext>)

初始化 類別的新實例, DbContextOptionsBuilder<TContext> 以進一步設定指定的 DbContextOptions

DbContextOptionsBuilder<TContext>()

DbContextOptionsBuilder<TContext>(DbContextOptions<TContext>)

來源:
DbContextOptionsBuilder%60.cs
來源:
DbContextOptionsBuilder%60.cs
來源:
DbContextOptionsBuilder%60.cs
來源:
DbContextOptionsBuilder%60.cs
來源:
DbContextOptionsBuilder%60.cs
來源:
DbContextOptionsBuilder%60.cs
來源:
DbContextOptionsBuilder%60.cs
來源:
DbContextOptionsBuilder%60.cs
來源:
DbContextOptionsBuilder%60.cs

初始化 類別的新實例, DbContextOptionsBuilder<TContext> 以進一步設定指定的 DbContextOptions

public DbContextOptionsBuilder (Microsoft.EntityFrameworkCore.DbContextOptions<TContext> options);
new Microsoft.EntityFrameworkCore.DbContextOptionsBuilder<'Context (requires 'Context :> Microsoft.EntityFrameworkCore.DbContext)> : Microsoft.EntityFrameworkCore.DbContextOptions<'Context (requires 'Context :> Microsoft.EntityFrameworkCore.DbContext)> -> Microsoft.EntityFrameworkCore.DbContextOptionsBuilder<'Context (requires 'Context :> Microsoft.EntityFrameworkCore.DbContext)>
Public Sub New (options As DbContextOptions(Of TContext))

參數

options
DbContextOptions<TContext>

要設定的選項。

適用於