Struct DbDataType
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
DbDataType(Type, DataType, string?)
public DbDataType(Type systemType, DataType dataType, string? dbType)
Parameters
DbDataType(Type, DataType, string?, int?)
public DbDataType(Type systemType, DataType dataType, string? dbType, int? length)
Parameters
DbDataType(Type, DataType, string?, int?, int?, int?)
public DbDataType(Type systemType, DataType dataType, string? dbType, int? length, int? precision, int? scale)
Parameters
DbDataType(Type, string)
public DbDataType(Type systemType, string dbType)
Parameters
Properties
DataType
public readonly DataType DataType { get; }
Property Value
DbType
public readonly string? DbType { get; }
Property Value
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
Methods
Equals(DbDataType)
public readonly bool Equals(DbDataType other)
Parameters
other
DbDataType
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
EqualsDbOnly(DbDataType)
public readonly bool EqualsDbOnly(DbDataType other)
Parameters
other
DbDataType
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override readonly string ToString()
Returns
WithDataType(DataType)
public readonly DbDataType WithDataType(DataType dataType)
Parameters
dataType
DataType
Returns
WithDbType(string?)
public readonly DbDataType WithDbType(string? dbName)
Parameters
dbName
string
Returns
WithLength(int?)
public readonly DbDataType WithLength(int? length)
Parameters
length
int?
Returns
WithPrecision(int?)
public readonly DbDataType WithPrecision(int? precision)
Parameters
precision
int?
Returns
WithScale(int?)
public readonly DbDataType WithScale(int? scale)
Parameters
scale
int?
Returns
WithSetValues(DbDataType)
public readonly DbDataType WithSetValues(DbDataType from)
Parameters
from
DbDataType
Returns
WithSystemType(Type)
public readonly DbDataType WithSystemType(Type systemType)
Parameters
systemType
Type
Returns
WithoutSystemType(DbDataType)
public readonly DbDataType WithoutSystemType(DbDataType from)
Parameters
from
DbDataType
Returns
WithoutSystemType(ColumnDescriptor)
public readonly DbDataType WithoutSystemType(ColumnDescriptor from)
Parameters
from
ColumnDescriptor
Returns
Operators
operator ==(DbDataType, DbDataType)
public static bool operator ==(DbDataType t1, DbDataType t2)
Parameters
t1
DbDataTypet2
DbDataType
Returns
operator !=(DbDataType, DbDataType)
public static bool operator !=(DbDataType t1, DbDataType t2)
Parameters
t1
DbDataTypet2
DbDataType