DataTypeT Class |
Namespace: CMS.DataEngine
The DataTypeT type exposes the following members.
Name | Description | |
---|---|---|
Convert |
Converts the value to a proper type
(Overrides DataTypeConvert(Object, CultureInfo, Object).) | |
FormatValue |
Formats the given value
(Inherited from DataType.) | |
GetDefaultValueCode |
Gets the code for the default value of this type in C# code
(Inherited from DataType.) | |
GetSqlType |
Gets the SQL data type representation
(Inherited from DataType.) | |
GetSqlValue |
Gets the SQL value representation for this type
(Inherited from DataType.) | |
GetString |
Gets the string representation of the given value
(Inherited from DataType.) |
Name | Description | |
---|---|---|
AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
Name | Description | |
---|---|---|
AllowEmpty |
If true, the data type allows for nulls in the database
(Inherited from DataType.) | |
CodeValueFormat |
Formatting code of the value for this type
(Inherited from DataType.) | |
ConversionFunc |
Conversion function for this data type
| |
ConversionMethod |
Returns the conversion method
(Overrides DataTypeConversionMethod.) | |
DbType |
Database type
(Inherited from DataType.) | |
DefaultPrecision |
Default precision of the type, if the precision is variable
(Inherited from DataType.) | |
DefaultSize |
Default size of the type, if the size is variable
(Inherited from DataType.) | |
DefaultValue |
Default value for this data type
| |
DefaultValueCode |
Code of the default value for this type
(Overrides DataTypeDefaultValueCode.) | |
FieldType |
Field type
(Inherited from DataType.) | |
GetFormatProvider |
Function which gets a format provider for the given culture
(Inherited from DataType.) | |
Hidden |
If true, the data type is hidden
(Inherited from DataType.) | |
IsDefaultType |
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.) | |
MaxPrecision |
Maximum precision of the type, if the precision is variable
(Inherited from DataType.) | |
MaxSize |
Maximum size of the type, if the size is variable
(Inherited from DataType.) | |
MaxValueLength |
Maximum value length
(Inherited from DataType.) | |
ObjectDefaultValue |
Default value for this data type
(Overrides DataTypeObjectDefaultValue.) | |
SchemaType |
Type representation in the XML schema of the data
(Inherited from DataType.) | |
SpecialDefaultValues |
List of special default values recognized by this type and treated as default value by the code
(Inherited from DataType.) | |
SqlType |
SQL data type representation
(Inherited from DataType.) | |
SqlValueFormat |
SQL value format. Default format is '{0}' to prevent SQL injection
(Inherited from DataType.) | |
StringFormat |
If defined, the given format is used to convert the value of this type to a string value. {0} represents the value.
(Inherited from DataType.) | |
SupportsTranslation |
If true, the data type supports translation of the content
(Inherited from DataType.) | |
Type |
System type
(Inherited from DataType.) | |
TypeAlias |
System type alias (e.g. bool for Boolean, etc.)
(Inherited from DataType.) | |
TypeGroup |
Name of the group that groups together types with similar behavior, such as integer, decimal, string etc.
(Inherited from DataType.) | |
VariablePrecision |
If true, the data type has variable precision
(Inherited from DataType.) | |
VariableSize |
If true, the data type has variable size
(Inherited from DataType.) |