Click or drag to resize

ICqlBatchConvertCqlArgumentTValue, 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.Mapping
Assembly:  Cassandra (in Cassandra.dll) Version: 3.11.0
Syntax
C#
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: TDatabase
The converted value.
See Also