Compartir a través de


IModelCodeGenerator.GenerateModel Método

Definición

Sobrecargas

GenerateModel(IModel, ModelCodeGenerationOptions)

Genera código para un modelo.

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

Genera código para un modelo.

GenerateModel(IModel, ModelCodeGenerationOptions)

Source:
IModelCodeGenerator.cs
Source:
IModelCodeGenerator.cs
Source:
IModelCodeGenerator.cs

Genera código para un modelo.

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

Parámetros

model
IModel

Modelo.

options
ModelCodeGenerationOptions

Las opciones que se usarán durante la generación.

Devoluciones

Modelo generado.

Se aplica a

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

Genera código para un modelo.

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

Parámetros

model
IModel

Modelo.

namespace
String

El espacio de nombres.

contextDir
String

Directorio de DbContext.

contextName
String

Nombre del objeto DbContext.

connectionString
String

La cadena de conexión.

options
ModelCodeGenerationOptions

Las opciones que se usarán durante la generación.

Devoluciones

Modelo generado.

Se aplica a