Struct DbDataType
Stores database type attributes.
public struct DbDataType : IEquatable<DbDataType>
- Implements
- Inherited Members
- Extension Methods
Constructors
DbDataType(Type)
public DbDataType(Type systemType)
Parameters
systemTypeType
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
otherDbDataType
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
EqualsDbOnly(DbDataType)
public readonly bool EqualsDbOnly(DbDataType other)
Parameters
otherDbDataType
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override readonly string ToString()
Returns
WithDataType(DataType)
public readonly DbDataType WithDataType(DataType dataType)
Parameters
dataTypeDataType
Returns
WithDbType(string?)
public readonly DbDataType WithDbType(string? dbName)
Parameters
dbNamestring
Returns
WithLength(int?)
public readonly DbDataType WithLength(int? length)
Parameters
lengthint?
Returns
WithPrecision(int?)
public readonly DbDataType WithPrecision(int? precision)
Parameters
precisionint?
Returns
WithScale(int?)
public readonly DbDataType WithScale(int? scale)
Parameters
scaleint?
Returns
WithSetValues(DbDataType)
public readonly DbDataType WithSetValues(DbDataType from)
Parameters
fromDbDataType
Returns
WithSystemType(Type)
public readonly DbDataType WithSystemType(Type systemType)
Parameters
systemTypeType
Returns
WithoutSystemType(DbDataType)
public readonly DbDataType WithoutSystemType(DbDataType from)
Parameters
fromDbDataType
Returns
WithoutSystemType(ColumnDescriptor)
public readonly DbDataType WithoutSystemType(ColumnDescriptor from)
Parameters
fromColumnDescriptor
Returns
Operators
operator ==(DbDataType, DbDataType)
public static bool operator ==(DbDataType t1, DbDataType t2)
Parameters
t1DbDataTypet2DbDataType
Returns
operator !=(DbDataType, DbDataType)
public static bool operator !=(DbDataType t1, DbDataType t2)
Parameters
t1DbDataTypet2DbDataType