Share via


IReverseEngineerScaffolder.ScaffoldModel Method

Definition

Overloads

ScaffoldModel(String, DatabaseModelFactoryOptions, ModelReverseEngineerOptions, ModelCodeGenerationOptions)

Scaffolds a model from a database schema.

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

Scaffolds a model from a database schema.

ScaffoldModel(String, DatabaseModelFactoryOptions, ModelReverseEngineerOptions, ModelCodeGenerationOptions)

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

Scaffolds a model from a database schema.

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

Parameters

connectionString
String

A connection string to the database.

databaseOptions
DatabaseModelFactoryOptions

The options specifying which metadata to read from the database.

modelOptions
ModelReverseEngineerOptions

The options to use when reverse engineering a model from the database.

codeOptions
ModelCodeGenerationOptions

The options to use when generating code for the model.

Returns

The scaffolded model.

Applies to

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

Scaffolds a model from a database schema.

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

Parameters

connectionString
String

A connection string to the database.

tables
IEnumerable<String>

A list of tables to include. Empty to include all tables.

schemas
IEnumerable<String>

A list of schemas to include. Empty to include all schemas.

namespace
String

The namespace of the model.

language
String

The programming language to scaffold for.

contextDir
String

The DbContext output dirctory.

contextName
String

The DbContext name.

modelOptions
ModelReverseEngineerOptions

The options to use when reverse engineering a model from the database.

codeOptions
ModelCodeGenerationOptions

The options to use when generating code for the model.

Returns

The scaffolded model.

Applies to