Share via


ModelCodeGenerationOptions Class

Definition

Represents the options to use while generating code for a model.

public class ModelCodeGenerationOptions
type ModelCodeGenerationOptions = class
Public Class ModelCodeGenerationOptions
Inheritance
ModelCodeGenerationOptions

Constructors

ModelCodeGenerationOptions()

Properties

ConnectionString

Gets or sets the connection string.

ContextDir

Gets or sets the DbContext output directory.

ContextName

Gets or sets the DbContext name.

ContextNamespace

Gets or sets the namespace for context class.

Language

Gets or sets the programming language to scaffold for.

ModelNamespace

Gets or sets the namespace for model classes.

ProjectDir

Gets or sets the root project directory.

RootNamespace

Gets or sets the namespace of the project.

SuppressConnectionStringWarning

Gets or sets a value indicating whether to suppress the connection string sensitive information warning.

SuppressOnConfiguring

Gets or sets a value indicating whether to suppress generation of the OnConfiguring() method.

UseDataAnnotations

Gets or sets a value indicating whether to use data annotations.

UseNullableReferenceTypes

Gets or sets a value indicating whether nullable reference types are enabled.

Applies to