Table of Contents

Struct DbDataType

Namespace
LinqToDB.Common
Assembly
linq2db.dll

Stores database type attributes.

public struct DbDataType : IEquatable<DbDataType>
Implements
Inherited Members
Extension Methods

Constructors

DbDataType(Type)

public DbDataType(Type systemType)

Parameters

systemType Type

DbDataType(Type, DataType)

public DbDataType(Type systemType, DataType dataType)

Parameters

systemType Type
dataType DataType

DbDataType(Type, DataType, string?)

public DbDataType(Type systemType, DataType dataType, string? dbType)

Parameters

systemType Type
dataType DataType
dbType string

DbDataType(Type, DataType, string?, int?)

public DbDataType(Type systemType, DataType dataType, string? dbType, int? length)

Parameters

systemType Type
dataType DataType
dbType string
length int?

DbDataType(Type, DataType, string?, int?, int?, int?)

public DbDataType(Type systemType, DataType dataType, string? dbType, int? length, int? precision, int? scale)

Parameters

systemType Type
dataType DataType
dbType string
length int?
precision int?
scale int?

DbDataType(Type, string)

public DbDataType(Type systemType, string dbType)

Parameters

systemType Type
dbType string

Properties

DataType

public readonly DataType DataType { get; }

Property Value

DataType

DbType

public readonly string? DbType { get; }

Property Value

string

Length

public readonly int? Length { get; }

Property Value

int?

Precision

public readonly int? Precision { get; }

Property Value

int?

Scale

public readonly int? Scale { get; }

Property Value

int?

SystemType

public readonly Type SystemType { get; }

Property Value

Type

Methods

Equals(DbDataType)

public readonly bool Equals(DbDataType other)

Parameters

other DbDataType

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

EqualsDbOnly(DbDataType)

public readonly bool EqualsDbOnly(DbDataType other)

Parameters

other DbDataType

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override readonly string ToString()

Returns

string

WithDataType(DataType)

public readonly DbDataType WithDataType(DataType dataType)

Parameters

dataType DataType

Returns

DbDataType

WithDbType(string?)

public readonly DbDataType WithDbType(string? dbName)

Parameters

dbName string

Returns

DbDataType

WithLength(int?)

public readonly DbDataType WithLength(int? length)

Parameters

length int?

Returns

DbDataType

WithPrecision(int?)

public readonly DbDataType WithPrecision(int? precision)

Parameters

precision int?

Returns

DbDataType

WithScale(int?)

public readonly DbDataType WithScale(int? scale)

Parameters

scale int?

Returns

DbDataType

WithSetValues(DbDataType)

public readonly DbDataType WithSetValues(DbDataType from)

Parameters

from DbDataType

Returns

DbDataType

WithSystemType(Type)

public readonly DbDataType WithSystemType(Type systemType)

Parameters

systemType Type

Returns

DbDataType

WithoutSystemType(DbDataType)

public readonly DbDataType WithoutSystemType(DbDataType from)

Parameters

from DbDataType

Returns

DbDataType

WithoutSystemType(ColumnDescriptor)

public readonly DbDataType WithoutSystemType(ColumnDescriptor from)

Parameters

from ColumnDescriptor

Returns

DbDataType

Operators

operator ==(DbDataType, DbDataType)

public static bool operator ==(DbDataType t1, DbDataType t2)

Parameters

t1 DbDataType
t2 DbDataType

Returns

bool

operator !=(DbDataType, DbDataType)

public static bool operator !=(DbDataType t1, DbDataType t2)

Parameters

t1 DbDataType
t2 DbDataType

Returns

bool