Share via


ModelCodeGenerator Class

Definition

Used to generate code for a model.

[System.Runtime.CompilerServices.Nullable(0)]
public abstract class ModelCodeGenerator : Microsoft.EntityFrameworkCore.Scaffolding.IModelCodeGenerator
public abstract class ModelCodeGenerator : Microsoft.EntityFrameworkCore.Scaffolding.IModelCodeGenerator
[<System.Runtime.CompilerServices.Nullable(0)>]
type ModelCodeGenerator = class
    interface IModelCodeGenerator
    interface ILanguageBasedService
type ModelCodeGenerator = class
    interface IModelCodeGenerator
    interface ILanguageBasedService
Public MustInherit Class ModelCodeGenerator
Implements IModelCodeGenerator
Inheritance
ModelCodeGenerator
Derived
Attributes
Implements

Remarks

See EF Core design-time services for more information and examples.

Constructors

Name Description
ModelCodeGenerator(ModelCodeGeneratorDependencies)

Initializes a new instance of the ModelCodeGenerator class.

Properties

Name Description
Dependencies

Dependencies for this service.

Language

Gets the programming language supported by this service.

Methods

Name Description
GenerateModel(IModel, ModelCodeGenerationOptions)

Generates code for a model.

GenerateModel(IModel, String, String, String, String, ModelCodeGenerationOptions)

Generates code for a model.

Applies to