Table of Contents

Class DatabaseModel

Namespace
LinqToDB.DataModel
Assembly
linq2db.Tools.dll

Root object for database model. Contains reference to data model and various model options.

public sealed class DatabaseModel
Inheritance
DatabaseModel
Extension Methods

Constructors

DatabaseModel(DataContextModel)

public DatabaseModel(DataContextModel context)

Parameters

context DataContextModel

Properties

AutoGeneratedHeader

Optional header comment text on top of each generated file. Will be wrapped into <auto-generated> tag.

public string? AutoGeneratedHeader { get; set; }

Property Value

string

DataContext

Gets database context descriptor.

public DataContextModel DataContext { get; }

Property Value

DataContextModel

DisableXmlDocWarnings

Enable supporession of xml-doc build warnings (e.g. due to missing xml-doc comments) in generated code.

public bool DisableXmlDocWarnings { get; set; }

Property Value

bool

NRTEnabled

Enable generation of nullable annotations (NRT) in generated code.

public bool NRTEnabled { get; set; }

Property Value

bool