Ditto 1.1.8
|
These objects are returned when using DittoScopedWriteTransaction.FindById(string) functionality. More...
Public Member Functions | |
unsafe DittoDocument | Exec () |
Execute the find operation to return the document with the matching ID. More... | |
unsafe List< DittoUpdateResult > | Update (Action< DittoMutableDocument > updater) |
Update the document with the matching ID. More... | |
unsafe bool | Remove () |
Remove the document with the matching ID. More... | |
unsafe bool | Evict () |
Evict the document with the matching ID. More... | |
These objects are returned when using DittoScopedWriteTransaction.FindById(string) functionality.
You can use them to perform updates on, remove, evict, or find a document.
|
inline |
Evict the document with the matching ID.
true
if the document was found and evicted. false
if the document wasn't found and therefore wasn't evicted.
|
inline |
Execute the find operation to return the document with the matching ID.
null
if the document was not found.
|
inline |
Remove the document with the matching ID.
true
if the document was found and removed. false
if the document wasn't found and therefore wasn't removed.
|
inline |
Update the document with the matching ID.
updater | An Action that gets called with the document matching the ID. If found, the document is a DittoMutableDocument, so you can call update-related functions on it. If the document is not found then the value provided to the action will be nil . |