共用方式為


IScaffoldingModelFactory.Create 方法

定義

多載

Create(DatabaseModel, ModelReverseEngineerOptions)

IModel 建立 DatabaseModel

Create(String, TableSelectionSet)

Create(DatabaseModel, ModelReverseEngineerOptions)

來源:
IScaffoldingModelFactory.cs
來源:
IScaffoldingModelFactory.cs
來源:
IScaffoldingModelFactory.cs

IModel 建立 DatabaseModel

public Microsoft.EntityFrameworkCore.Metadata.IModel Create (Microsoft.EntityFrameworkCore.Scaffolding.Metadata.DatabaseModel databaseModel, Microsoft.EntityFrameworkCore.Scaffolding.ModelReverseEngineerOptions options);
abstract member Create : Microsoft.EntityFrameworkCore.Scaffolding.Metadata.DatabaseModel * Microsoft.EntityFrameworkCore.Scaffolding.ModelReverseEngineerOptions -> Microsoft.EntityFrameworkCore.Metadata.IModel
Public Function Create (databaseModel As DatabaseModel, options As ModelReverseEngineerOptions) As IModel

參數

databaseModel
DatabaseModel

資料庫模型。

options
ModelReverseEngineerOptions

建立模型時要使用的選項。

傳回

模型本身。

適用於

Create(String, TableSelectionSet)

public Microsoft.EntityFrameworkCore.Metadata.IModel Create (string connectionString, Microsoft.EntityFrameworkCore.Scaffolding.TableSelectionSet tableSelectionSet);
abstract member Create : string * Microsoft.EntityFrameworkCore.Scaffolding.TableSelectionSet -> Microsoft.EntityFrameworkCore.Metadata.IModel
Public Function Create (connectionString As String, tableSelectionSet As TableSelectionSet) As IModel

參數

connectionString
String
tableSelectionSet
TableSelectionSet

傳回

適用於