IScaffoldingModelFactory.Create 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Create(DatabaseModel, ModelReverseEngineerOptions) |
從 IModel 建立 DatabaseModel。 |
Create(String, TableSelectionSet) |
Create(DatabaseModel, ModelReverseEngineerOptions)
從 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