Condividi tramite


ModelCodeGenerator.GenerateModel Metodo

Definizione

Overload

GenerateModel(IModel, ModelCodeGenerationOptions)

Genera il codice per un modello.

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

Genera il codice per un modello.

GenerateModel(IModel, ModelCodeGenerationOptions)

Origine:
ModelCodeGenerator.cs
Origine:
ModelCodeGenerator.cs
Origine:
ModelCodeGenerator.cs
Origine:
ModelCodeGenerator.cs
Origine:
ModelCodeGenerator.cs
Origine:
ModelCodeGenerator.cs
Origine:
ModelCodeGenerator.cs

Genera il codice per un modello.

public abstract 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 MustOverride Function GenerateModel (model As IModel, options As ModelCodeGenerationOptions) As ScaffoldedModel

Parametri

model
IModel

Modello.

options
ModelCodeGenerationOptions

Opzioni da utilizzare durante la generazione.

Restituisce

Modello generato.

Implementazioni

Si applica a

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

Origine:
ModelCodeGenerator.cs
Origine:
ModelCodeGenerator.cs

Genera il codice per un modello.

public abstract 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 MustOverride 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 utilizzare durante la generazione.

Restituisce

Modello generato.

Implementazioni

Si applica a