The DataType type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
![]() | DataType |
Methods
Name | Description | |
---|---|---|
![]() | Convert |
Converts the value to a proper type
|
![]() | ![]() | (Inherited from ![]() |
![]() | ![]() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from ![]() |
![]() | FormatValue |
Formats the given value
|
![]() | GetDefaultValueCode |
Gets the code for the default value of this type in C# code
|
![]() | ![]() | Serves as a hash function for a particular type. (Inherited from ![]() |
![]() | GetSqlType |
Gets the SQL data type representation
|
![]() | GetSqlValue |
Gets the SQL value representation for this type
|
![]() | GetString |
Gets the string representation of the given value
|
![]() | ![]() | Gets the (Inherited from ![]() ![]() |
![]() | ![]() | Creates a shallow copy of the current (Inherited from ![]() ![]() |
![]() | ![]() | Returns a string that represents the current object. (Inherited from ![]() |
Extension Methods
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.) |
Properties
Name | Description | |
---|---|---|
![]() | AllowEmpty |
If true, the data type allows for nulls in the database
|
![]() | CodeValueFormat |
Formatting code of the value for this type
|
![]() | ConversionMethod |
Returns the conversion method
|
![]() | DbType |
Database type
|
![]() | DefaultPrecision |
Default precision of the type, if the precision is variable
|
![]() | DefaultSize |
Default size of the type, if the size is variable
|
![]() | DefaultValueCode |
Code of the default value for this type
|
![]() | FieldType |
Field type
|
![]() | GetFormatProvider |
Function which gets a format provider for the given culture
|
![]() | Hidden |
If true, the data type is hidden
|
![]() | IsDefaultType |
If true, the data type is considered default. Types marked as default are replaced only by default types in the type mapping tables.
|
![]() | MaxPrecision |
Maximum precision of the type, if the precision is variable
|
![]() | MaxSize |
Maximum size of the type, if the size is variable
|
![]() | MaxValueLength |
Maximum value length
|
![]() | ObjectDefaultValue |
Default value for this data type
|
![]() | SchemaType |
Type representation in the XML schema of the data
|
![]() | SpecialDefaultValues |
List of special default values recognized by this type and treated as default value by the code
|
![]() | SqlType |
SQL data type representation
|
![]() | SqlValueFormat |
SQL value format. Default format is '{0}' to prevent SQL injection
|
![]() | StringFormat |
If defined, the given format is used to convert the value of this type to a string value. {0} represents the value.
|
![]() | SupportsTranslation |
If true, the data type supports translation of the content
|
![]() | Type |
System type
|
![]() | TypeAlias |
System type alias (e.g. bool for Boolean, etc.)
|
![]() | TypeGroup |
Name of the group that groups together types with similar behavior, such as integer, decimal, string etc.
|
![]() | VariablePrecision |
If true, the data type has variable precision
|
![]() | VariableSize |
If true, the data type has variable size
|
See Also