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.
public abstract class TemplatedModelGenerator : Microsoft.EntityFrameworkCore.Scaffolding.ModelCodeGenerator
type TemplatedModelGenerator = class
inherit ModelCodeGenerator
Public MustInherit Class TemplatedModelGenerator
Inherits ModelCodeGenerator
- Inheritance
Constructors
TemplatedModelGenerator(ModelCodeGeneratorDependencies) |
Initializes a new instance of the TemplatedModelGenerator class. |
Properties
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
GenerateModel(IModel, ModelCodeGenerationOptions) |
Generates code for a model. (Inherited from ModelCodeGenerator) |
GenerateModel(IModel, String, String, String, String, ModelCodeGenerationOptions) |
Generates code for a model. (Inherited from ModelCodeGenerator) |
HasTemplates(String) |
Checks whether the templates required for this generator are present. |
Applies to
Entity Framework