IMapperConvertCqlArgumentTValue, TDatabase Method |
Allows you to convert an argument/bind variable value being used in a CQL statement using the same converters that are being used by the client
internally, including any user-defined conversions if you configured them. Will convert a value of Type TValue to a value of
Type TDatabase or throw an InvalidOperationException if no converter is available.
Namespace: Cassandra.MappingAssembly: Cassandra (in Cassandra.dll) Version: 3.2.0
Syntax TDatabase ConvertCqlArgument<TValue, TDatabase>(
TValue value
)
Parameters
- value
- Type: TValue
The value to convert.
Type Parameters
- TValue
- The original Type of the value.
- TDatabase
- The Type expected by Cassandra to convert to.
Return Value
Type:
TDatabaseThe converted value.
See Also