Ditto 4.1.1
|
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 identifier. More... | |
unsafe List< DittoUpdateResult > | Update (Action< DittoMutableDocument > updater) |
Update the document with the matching identifier. More... | |
unsafe bool | Remove () |
Remove the document with the matching identifier. More... | |
unsafe bool | Evict () |
Evict the document with the matching identifier. 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 identifier.
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 identifier.
null
if the document was not found.
|
inline |
Remove the document with the matching identifier.
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 identifier.
updater | An Action that gets called with the document matching the identifier. 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 . |