TemplatedModelGenerator 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.
Base type for model code generators that use templates.
[System.Runtime.CompilerServices.Nullable(0)]
public abstract class TemplatedModelGenerator : Microsoft.EntityFrameworkCore.Scaffolding.ModelCodeGenerator
public abstract class TemplatedModelGenerator : Microsoft.EntityFrameworkCore.Scaffolding.ModelCodeGenerator
[<System.Runtime.CompilerServices.Nullable(0)>]
type TemplatedModelGenerator = class
inherit ModelCodeGenerator
type TemplatedModelGenerator = class
inherit ModelCodeGenerator
Public MustInherit Class TemplatedModelGenerator
Inherits ModelCodeGenerator
- Inheritance
- Attributes
Constructors
| Name | Description |
|---|---|
| TemplatedModelGenerator(ModelCodeGeneratorDependencies) |
Initializes a new instance of the TemplatedModelGenerator class. |
Properties
| Name | Description |
|---|---|
| Dependencies |
Dependencies for this service. (Inherited from ModelCodeGenerator) |
| Language |
Gets the programming language supported by this service. |
| TemplatesDirectory |
Gets the subdirectory under the project to look for templates in. |
Methods
| Name | Description |
|---|---|
| GenerateModel(IModel, ModelCodeGenerationOptions) |
Generates code for a model. (Inherited from ModelCodeGenerator) |
| HasTemplates(String) |
Checks whether the templates required for this generator are present. |