Table of Contents

Struct DbDataType

Namespace
LinqToDB.Common
Assembly
linq2db.dll

Stores database type attributes.

public struct DbDataType : IEquatable<DbDataType>
Implements
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)

Indicates whether the current object is equal to another object of the same type.

public readonly bool Equals(DbDataType other)

Parameters

other DbDataType

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

Another object to compare to.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

EqualsDbOnly(DbDataType)

public readonly bool EqualsDbOnly(DbDataType other)

Parameters

other DbDataType

Returns

bool

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

public override readonly string ToString()

Returns

string

A string containing a fully qualified type name.

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