Język

TemplatedModelGenerator Klasa

Definicja

Typ podstawowy generatorów kodu modelu korzystających z szablonów.

[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
Dziedziczenie
TemplatedModelGenerator
Atrybuty

Konstruktory

Nazwisko Opis
TemplatedModelGenerator(ModelCodeGeneratorDependencies)

Inicjuje nowe wystąpienie klasy TemplatedModelGenerator.

Właściwości

Nazwisko Opis
Dependencies

Zależności dla tej usługi.

(Odziedziczone po ModelCodeGenerator)
Language

Pobiera język programowania obsługiwany przez tę usługę.

TemplatesDirectory

Pobiera podkatalog w projekcie, aby wyszukać szablony.

Metody

Nazwisko Opis
GenerateModel(IModel, ModelCodeGenerationOptions)

Generuje kod dla modelu.

(Odziedziczone po ModelCodeGenerator)
HasTemplates(String)

Sprawdza, czy szablony wymagane dla tego generatora są obecne.

Dotyczy