Method ToString
ToString()
Converts value of this instance to string as Base64-encoded
representation of its binary contents.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | String representation of this instance, which is the same as the value of Encoded property. |
Remarks
You may use the string representation of row version similar to
Bytes property to pass to pass the version to a
query via
row_version
SQL function, as shown in the
example.
Examples
Passing row version as a string to a query.var rowVersion = getResult.Version;
var queryResult = await client.QueryAsync(
"UPDATE MyTable $t SET NAME = 'John' WHERE id = 10 AND " +
$"row_version($t) = CAST('{rowVersion}' AS Binary");