ModelCodeGenerator.GenerateModel Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 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
Parameters
- model
- IModel
The model.
- options
- ModelCodeGenerationOptions
The options to use during generation.
Returns
The generated model.
Implements
Applies to
GenerateModel(IModel, String, String, String, String, ModelCodeGenerationOptions)
Generates code for a model.
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
Parameters
- model
- IModel
The model.
- namespace
- String
The namespace.
- connectionString
- String
The connection string.
- options
- ModelCodeGenerationOptions
The options to use during generation.
Returns
The generated model.
Implements
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework