DataType Structure

Data type definition.

Namespace:  Dundas.BI.Data.Metadata
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.2.0.1000)
Syntax
public struct DataType : IEquatable<DataType>

The DataType type exposes the following members.

Constructors
  NameDescription
Public methodDataType(Type)
Initializes a new instance of the DataType structure.
Public methodDataType(TypeCode)
Initializes a new instance of the DataType structure.
Public methodDataType(DatabaseType)
Initializes a new instance of the DataType structure.
Top
Properties
  NameDescription
Public propertyDatabaseType
Gets or sets the data type to which native data type is mapped.
Public propertyIsBoolean
Gets a value indicating whether this data type is Boolean.
Public propertyIsDateTime
Gets a value indicating whether this data type is date/time.
Public propertyIsInteger
Gets a value indicating whether this data type is an integer number (without a fractional component).
Public propertyIsNullable
Gets or sets a value indicating whether this instance accepts for a value.
Public propertyIsNumeric
Gets a value indicating whether this data type is numeric.
Public propertyIsNumericOverflow
Gets or sets a value indicating whether the data provider cannot handle conversion to double for numeric values with a scale or precision that is too high.
Public propertyIsSortable
Gets or sets a value indicating whether the data type is sortable.
Public propertyIsString
Gets a value indicating whether this data type is string.
Public propertyMaxLength
Gets or sets the maximum length (for string and binary data types).
Public propertyNumericPrecision
Gets or sets the maximum number of digits (for numeric data types).
Public propertyNumericScale
Gets or sets the number of decimal places (for numeric data types).
Public propertyOriginalDataTypeName
Gets or sets the data type name as defined in the source database.
Public propertySystemType
Gets the .NET system type.
Top
Methods
  NameDescription
Public methodStatic memberBinary
Returns a binary DataType with the specified length.
Public methodStatic memberCurrency
Returns a currency DataType the specified numeric precision.
Public methodStatic memberDecimal(Int32)
Returns a decimal DataType with the specified precision.
Public methodStatic memberDecimal(Int32, Int32)
Returns a decimal DataType with the specified precision and scale.
Public methodStatic memberDouble
Returns a double DataType.
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(DataType)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodIsCompatibleWith
Determines whether the current object is compatible with to another object of the same type.
Public methodStatic memberString
Returns a string DataType with the specified length.
Public methodToString
Returns a String that represents this instance.
(Overrides ValueTypeToString.)
Public methodTryConvertValue
Convert the value to this data type.
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Compares two DataType structures for equality.
Public operatorStatic memberInequality
Compares two DataType structures for inequality.
Top
Fields
  NameDescription
Public fieldStatic memberUndefined
The undefined data type.
Top
See Also