ModelCodeGenerator Class
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.
Used to generate code for a model.
[System.Runtime.CompilerServices.Nullable(0)]
public abstract class ModelCodeGenerator : Microsoft.EntityFrameworkCore.Scaffolding.IModelCodeGenerator
public abstract class ModelCodeGenerator : Microsoft.EntityFrameworkCore.Scaffolding.IModelCodeGenerator
[<System.Runtime.CompilerServices.Nullable(0)>]
type ModelCodeGenerator = class
interface IModelCodeGenerator
interface ILanguageBasedService
type ModelCodeGenerator = class
interface IModelCodeGenerator
interface ILanguageBasedService
Public MustInherit Class ModelCodeGenerator
Implements IModelCodeGenerator
- Inheritance
-
ModelCodeGenerator
- Derived
- Attributes
- Implements
Remarks
See EF Core design-time services for more information and examples.
Constructors
| Name | Description |
|---|---|
| ModelCodeGenerator(ModelCodeGeneratorDependencies) |
Initializes a new instance of the ModelCodeGenerator class. |
Properties
| Name | Description |
|---|---|
| Dependencies |
Dependencies for this service. |
| Language |
Gets the programming language supported by this service. |
Methods
| Name | Description |
|---|---|
| GenerateModel(IModel, ModelCodeGenerationOptions) |
Generates code for a model. |
| GenerateModel(IModel, String, String, String, String, ModelCodeGenerationOptions) |
Generates code for a model. |