CQL data types to C# types
When retrieving the value of a column from a Row
object, you use a getter based on the type of the column.
CQL data type | C# type |
---|---|
ascii | string |
bigint | long |
blob | byte[] |
boolean | bool |
counter | long |
custom | byte[] |
date | LocalDate |
decimal | decimal |
double | double |
duration | Duration |
float | float |
inet | IPAddress |
int | int |
list | IEnumerable<T> |
map | IDictionary<K, V> |
set | IEnumerable<T> |
smallint | short |
text | string |
time | LocalTime |
timestamp | DateTimeOffset |
timeuuid | TimeUuid |
tinyint | sbyte |
uuid | Guid |
varchar | string |
varint | BigInteger |
vector | CqlVector |