Struct DbDataType
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
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)
Indicates whether the current object is equal to another object of the same type.
public readonly bool Equals(DbDataType other)
Parameters
other
DbDataTypeAn 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
objectAnother 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
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
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