Table of Contents

Class DataTypeInfo

Namespace
LinqToDB.SchemaProvider
Assembly
linq2db.dll

Database data type descriptor. Implements subset of DataTypes schema collection: https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/common-schema-collections.

public class DataTypeInfo
Inheritance
DataTypeInfo
Extension Methods

Fields

CreateFormat

Gets or sets SQL type name template - type name and, optionally, parameters. This template could be used to define column or variable of specific type. E.g. DECIMAL({0}, {1}).

public string? CreateFormat

Field Value

string

CreateParameters

Gets or sets comma-separated positional list of CreateFormat parameters. E.g. "precision,scale". Order of parameters must match order in CreateFormat.

public string? CreateParameters

Field Value

string

DataType

Gets or sets .NET type name, used by provider for current type.

public string DataType

Field Value

string

ProviderDbType

Gets or sets provider-specific type identifier to use for query parameters of this type. Corresponds to some provider's enumeration, e.g. SqlDbType, OracleType, etc.

public int ProviderDbType

Field Value

int

ProviderSpecific

Marks provider-specific types.

public bool ProviderSpecific

Field Value

bool

TypeName

Gets or sets SQL name of data type.

public string TypeName

Field Value

string