Class RowVersion
Represents the version of a row in the database.
Assembly: Oracle.NoSQL.SDK.dll
Syntax
public class RowVersion : Object
Examples
Using RowVersion for a conditional Put operation.
var row = new MapValue
{
["id"] = 1000,
["name"] = "John"
};
var result = await client.PutAsync("myTable", row);
var version = result.Version;
// Some time later we modify the row but only if nobody has modified
// it since (meaning that its version has not changed)
row["name"] = "Jane";
result = await client.PutIfVersionAsync("myTable", row, version);
Console.WriteLine(result.Success);
Constructors
Properties
Name |
Description |
Bytes
|
Gets the version contents as byte array.
|
Encoded
|
Gets the contents of this version encoded as Base64 string.
|
Methods
Name |
Description |
ToString()
|
Converts value of this instance to string as Base64-encoded
representation of its binary contents.
|