IModelCodeGenerator.GenerateModel Method

Definition

Overloads

GenerateModel(IModel, ModelCodeGenerationOptions)

Generates code for a model.

GenerateModel(IModel, String, String, String, String, ModelCodeGenerationOptions)

Generates code for a model.

GenerateModel(IModel, ModelCodeGenerationOptions)

Generates code for a model.

public Microsoft.EntityFrameworkCore.Scaffolding.ScaffoldedModel GenerateModel (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Scaffolding.ModelCodeGenerationOptions options);
abstract member GenerateModel : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Scaffolding.ModelCodeGenerationOptions -> Microsoft.EntityFrameworkCore.Scaffolding.ScaffoldedModel
Public Function GenerateModel (model As IModel, options As ModelCodeGenerationOptions) As ScaffoldedModel

Parameters

model
IModel

The model.

options
ModelCodeGenerationOptions

The options to use during generation.

Returns

The generated model.

Applies to

GenerateModel(IModel, String, String, String, String, ModelCodeGenerationOptions)

Generates code for a model.

public Microsoft.EntityFrameworkCore.Scaffolding.ScaffoldedModel GenerateModel (Microsoft.EntityFrameworkCore.Metadata.IModel model, string namespace, string contextDir, string contextName, string connectionString, Microsoft.EntityFrameworkCore.Scaffolding.ModelCodeGenerationOptions options);
abstract member GenerateModel : Microsoft.EntityFrameworkCore.Metadata.IModel * string * string * string * string * Microsoft.EntityFrameworkCore.Scaffolding.ModelCodeGenerationOptions -> Microsoft.EntityFrameworkCore.Scaffolding.ScaffoldedModel
Public Function GenerateModel (model As IModel, namespace As String, contextDir As String, contextName As String, connectionString As String, options As ModelCodeGenerationOptions) As ScaffoldedModel

Parameters

model
IModel

The model.

namespace
String

The namespace.

contextDir
String

The directory of the DbContext.

contextName
String

The name of the DbContext.

connectionString
String

The connection string.

options
ModelCodeGenerationOptions

The options to use during generation.

Returns

The generated model.

Applies to