Share via


TemplatedModelGenerator Class

Definition

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
TemplatedModelGenerator
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.

Applies to