DataType T  MembersKentico 8.0 API Reference
The DataType T  type exposes the following members.
Constructors

  NameDescription
Public methodDataType T 
Constructor
Back to Top
Methods

  NameDescription
Public methodConvert
Converts the value to a proper type
(Overrides DataType Convert(Object, CultureInfo, Object).)
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodGetDefaultValueCode
Gets the code for the default value of this type in C# code
(Inherited from DataType.)
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodGetSqlType
Gets the SQL data type representation
(Inherited from DataType.)
Public methodGetSqlValue
Gets the SQL value representation for this type
(Inherited from DataType.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Back to Top
Extension Methods

  NameDescription
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Back to Top
Properties

  NameDescription
Public propertyAllowEmpty
If true, the data type allows for nulls in the database
(Inherited from DataType.)
Public propertyCodeValueFormat
Formatting code of the value for this type
(Inherited from DataType.)
Protected propertyConversionFunc
Conversion function for this data type
Public propertyConversionMethod
Returns the conversion method
(Overrides DataType ConversionMethod.)
Public propertyDbType
Database type
(Inherited from DataType.)
Public propertyDefaultPrecision
Default precision of the type, if the precision is variable
(Inherited from DataType.)
Public propertyDefaultSize
Default size of the type, if the size is variable
(Inherited from DataType.)
Public propertyDefaultValue
Default value for this data type
Public propertyDefaultValueCode
Code of the default value for this type
(Overrides DataType DefaultValueCode.)
Public propertyFieldType
Field type
(Inherited from DataType.)
Public propertyHidden
If true, the data type is hidden
(Inherited from DataType.)
Public propertyIsDefaultType
If true, the data type is considered default. Types marked as default are replaced only by default types in the type mapping tables.
(Inherited from DataType.)
Public propertyMaxPrecision
Maximum precision of the type, if the precision is variable
(Inherited from DataType.)
Public propertyMaxSize
Maximum size of the type, if the size is variable
(Inherited from DataType.)
Public propertyMaxValueLength
Maximum value length
(Inherited from DataType.)
Public propertyObjectDefaultValue
Default value for this data type
(Overrides DataType ObjectDefaultValue.)
Public propertySchemaType
Type representation in the XML schema of the data
(Inherited from DataType.)
Public propertySpecialDefaultValues
List of special default values recognized by this type and treated as default value by the code
(Inherited from DataType.)
Public propertySqlType
SQL data type representation
(Inherited from DataType.)
Public propertySqlValueFormat
SQL value format. Default format is '{0}' to prevent SQL injection
(Inherited from DataType.)
Public propertySupportsTranslation
If true, the data type supports translation of the content
(Inherited from DataType.)
Public propertyType
System type
(Inherited from DataType.)
Public propertyTypeAlias
System type alias (e.g. bool for Boolean, etc.)
(Inherited from DataType.)
Public propertyTypeGroup
Name of the group that groups together types with similar behavior, such as integer, decimal, string etc.
(Inherited from DataType.)
Public propertyVariablePrecision
If true, the data type has variable precision
(Inherited from DataType.)
Public propertyVariableSize
If true, the data type has variable size
(Inherited from DataType.)
Back to Top
See Also