Partager via


ModelCodeGenerator.GenerateModel Méthode

Définition

Surcharges

GenerateModel(IModel, ModelCodeGenerationOptions)

Génère du code pour un modèle.

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

Génère du code pour un modèle.

GenerateModel(IModel, ModelCodeGenerationOptions)

Source:
ModelCodeGenerator.cs
Source:
ModelCodeGenerator.cs
Source:
ModelCodeGenerator.cs
Source:
ModelCodeGenerator.cs
Source:
ModelCodeGenerator.cs
Source:
ModelCodeGenerator.cs
Source:
ModelCodeGenerator.cs

Génère du code pour un modèle.

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

Paramètres

model
IModel

Modèle.

options
ModelCodeGenerationOptions

Options à utiliser pendant la génération.

Retours

Modèle généré.

Implémente

S’applique à

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

Source:
ModelCodeGenerator.cs
Source:
ModelCodeGenerator.cs

Génère du code pour un modèle.

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

Paramètres

model
IModel

Modèle.

namespace
String

Espace de noms.

contextDir
String

Répertoire du DbContext.

contextName
String

Nom de l'objet DbContext.

connectionString
String

Chaîne de connexion

options
ModelCodeGenerationOptions

Options à utiliser pendant la génération.

Retours

Modèle généré.

Implémente

S’applique à