Enum DataType
- Namespace
- YndigoBlue.Velocity.Enums
- Assembly
- YndigoBlue.Velocity.dll
Defines the data types supported by Velocity across different database systems.
public enum DataType
Fields
Blob = 0Binary Large Object for storing binary data (images, files, etc.).
Boolean = 1Boolean/logical value (true/false).
Byte = 28-bit unsigned integer (0 to 255).
Char = 3Fixed-length character string.
Clob = 4Character Large Object for storing large text data.
Date = 5Date without time component.
DateTime = 6Date and time without timezone.
Decimal = 7Fixed-precision decimal number.
Double = 8Double-precision floating-point number (64-bit).
Float = 9Single-precision floating-point number (32-bit).
Geometry = 10Planar geometric/geographic spatial data type.
Geography = 11Geodetic (spherical) geographic spatial data type.
Integer = 1232-bit signed integer.
Long = 1364-bit signed integer.
Short = 1416-bit signed integer.
Timestamp = 15Timestamp with high precision.
VarChar = 16Variable-length character string.
String = 17Special type that encapsulates string values returned from queries.
Query = 18Special type used when entering values into a record from a subquery.
Expression = 19Special type used when a data type is calculated dynamically from an expression.
Guid = 20Globally Unique Identifier (GUID/UUID).
Unsupported = 21Special type indicating a database-specific type not supported by Velocity.
Remarks
Velocity provides a unified type system that maps to native database types. This abstraction allows code to work consistently across different database vendors. Some types are special-purpose and used only in specific contexts like queries or binding.