TemplatedModelGenerator Class

Definition

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
TemplatedModelGenerator

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