IReverseEngineerScaffolder.ScaffoldModel 方法

定义

重载

ScaffoldModel(String, DatabaseModelFactoryOptions, ModelReverseEngineerOptions, ModelCodeGenerationOptions)

从数据库架构搭建模型。

ScaffoldModel(String, IEnumerable<String>, IEnumerable<String>, String, String, String, String, ModelReverseEngineerOptions, ModelCodeGenerationOptions)

从数据库架构搭建模型。

ScaffoldModel(String, DatabaseModelFactoryOptions, ModelReverseEngineerOptions, ModelCodeGenerationOptions)

Source:
IReverseEngineerScaffolder.cs
Source:
IReverseEngineerScaffolder.cs
Source:
IReverseEngineerScaffolder.cs

从数据库架构搭建模型。

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

生成模型代码时要使用的选项。

返回

基架模型。

适用于

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

要为其搭建基架的编程语言。

contextDir
String

DbContext 输出 dirctory。

contextName
String

DbContext 名称。

modelOptions
ModelReverseEngineerOptions

从数据库对模型进行反向工程时要使用的选项。

codeOptions
ModelCodeGenerationOptions

生成模型代码时要使用的选项。

返回

基架模型。

适用于