ANamespaceAccess..::..Put Method (ARecord, String, WritePolicy, Nullable<(Of <(<'TimeSpan>)>)>)
Puts (Writes) a DB record based on the provided record including Expiration.
Note that if the namespace and/or set is different, this instances's values are used except
in the case where the primary key is a digest. In these cases, an InvalidOperationException is thrown.
Namespace:
Aerospike.Database.LINQPadDriver.ExtensionsAssembly: Aerospike.Database.LINQPadDriver (in Aerospike.Database.LINQPadDriver.dll)
Syntax
Parameters
- record
- Type: Aerospike.Database.LINQPadDriver.Extensions..::..ARecord
A ARecord object used to add or update the associated record.
- setName
- Type: String
Set name or null to use the set name defined in the record (default)
- writePolicy
- Type: WritePolicy
The write policy. If not provided , the default policy is used.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | If the record's primary key is a digest (not an actual value). This exception will be thrown, since a digest has the namespace and set of where this record was retrieved from. |