IReverseEngineerScaffolder.ScaffoldModel 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ScaffoldModel(String, DatabaseModelFactoryOptions, ModelReverseEngineerOptions, ModelCodeGenerationOptions)
從資料庫架構建立模型。
public Microsoft.EntityFrameworkCore.Scaffolding.ScaffoldedModel ScaffoldModel (string connectionString, Microsoft.EntityFrameworkCore.Scaffolding.DatabaseModelFactoryOptions databaseOptions, Microsoft.EntityFrameworkCore.Scaffolding.ModelReverseEngineerOptions modelOptions, Microsoft.EntityFrameworkCore.Scaffolding.ModelCodeGenerationOptions codeOptions);
abstract member ScaffoldModel : string * Microsoft.EntityFrameworkCore.Scaffolding.DatabaseModelFactoryOptions * Microsoft.EntityFrameworkCore.Scaffolding.ModelReverseEngineerOptions * Microsoft.EntityFrameworkCore.Scaffolding.ModelCodeGenerationOptions -> Microsoft.EntityFrameworkCore.Scaffolding.ScaffoldedModel
Public Function ScaffoldModel (connectionString As String, databaseOptions As DatabaseModelFactoryOptions, modelOptions As ModelReverseEngineerOptions, codeOptions As ModelCodeGenerationOptions) As ScaffoldedModel
參數
- connectionString
- String
資料庫的連接字串。
- databaseOptions
- DatabaseModelFactoryOptions
指定要從資料庫讀取哪些中繼資料的選項。
- modelOptions
- ModelReverseEngineerOptions
從資料庫反向工程模型時要使用的選項。
- codeOptions
- ModelCodeGenerationOptions
產生模型程式碼時要使用的選項。
傳回
Scaffold 的模型。
適用於
ScaffoldModel(String, IEnumerable<String>, IEnumerable<String>, String, String, String, String, ModelReverseEngineerOptions, ModelCodeGenerationOptions)
從資料庫架構建立模型。
public Microsoft.EntityFrameworkCore.Scaffolding.ScaffoldedModel ScaffoldModel (string connectionString, System.Collections.Generic.IEnumerable<string> tables, System.Collections.Generic.IEnumerable<string> schemas, string namespace, string language, string contextDir, string contextName, Microsoft.EntityFrameworkCore.Scaffolding.ModelReverseEngineerOptions modelOptions, Microsoft.EntityFrameworkCore.Scaffolding.ModelCodeGenerationOptions codeOptions);
abstract member ScaffoldModel : string * seq<string> * seq<string> * string * string * string * string * Microsoft.EntityFrameworkCore.Scaffolding.ModelReverseEngineerOptions * Microsoft.EntityFrameworkCore.Scaffolding.ModelCodeGenerationOptions -> Microsoft.EntityFrameworkCore.Scaffolding.ScaffoldedModel
Public Function ScaffoldModel (connectionString As String, tables As IEnumerable(Of String), schemas As IEnumerable(Of String), namespace As String, language As String, contextDir As String, contextName As String, modelOptions As ModelReverseEngineerOptions, codeOptions As ModelCodeGenerationOptions) As ScaffoldedModel
參數
- connectionString
- String
資料庫的連接字串。
- tables
- IEnumerable<String>
要包含的資料表清單。 空白以包含所有資料表。
- schemas
- IEnumerable<String>
要包含的架構清單。 空白以包含所有架構。
- namespace
- String
模型的命名空間。
- language
- String
要為其建立 Scaffold 的程式設計語言。
- contextDir
- String
DbCoNtext 輸出 dirctory。
- modelOptions
- ModelReverseEngineerOptions
從資料庫反向工程模型時要使用的選項。
- codeOptions
- ModelCodeGenerationOptions
產生模型程式碼時要使用的選項。
傳回
Scaffold 的模型。