Condividi tramite


IModelCodeGenerator.GenerateModel Metodo

Definizione

Overload

GenerateModel(IModel, ModelCodeGenerationOptions)

Genera codice per un modello.

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

Genera codice per un modello.

GenerateModel(IModel, ModelCodeGenerationOptions)

Origine:
IModelCodeGenerator.cs
Origine:
IModelCodeGenerator.cs
Origine:
IModelCodeGenerator.cs

Genera codice per un modello.

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

Parametri

model
IModel

Modello.

options
ModelCodeGenerationOptions

Opzioni da usare durante la generazione.

Restituisce

Modello generato.

Si applica a

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

Genera codice per un modello.

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

Parametri

model
IModel

Modello.

namespace
String

Spazio dei nomi.

contextDir
String

Directory dell'oggetto DbContext.

contextName
String

Nome di DbContext.

connectionString
String

Stringa di connessione.

options
ModelCodeGenerationOptions

Opzioni da usare durante la generazione.

Restituisce

Modello generato.

Si applica a