DatabaseModelFactoryOptions 建構函式

定義

初始化 DatabaseModelFactoryOptions 類別的新執行個體。

C#
public DatabaseModelFactoryOptions (System.Collections.Generic.IEnumerable<string> tables = default, System.Collections.Generic.IEnumerable<string> schemas = default);
C#
public DatabaseModelFactoryOptions (System.Collections.Generic.IEnumerable<string>? tables = default, System.Collections.Generic.IEnumerable<string>? schemas = default);

參數

tables
IEnumerable<String>

要包含的資料表清單。 空白以包含所有資料表。

schemas
IEnumerable<String>

要包含的架構清單。 空白以包含所有架構。

適用於

產品 版本
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0