Ditto 3.0.8
Public Member Functions | Properties | List of all members
DittoSDK.DittoWriteTransaction Class Reference

Exposes functionality that allows you to perform multiple operations on the store within a single write transaction. More...

Public Member Functions

DittoScopedWriteTransaction Scoped (string collectionName)
 Creates a DittoScopedWriteTransaction object that will ensure that operations called on it are all in the context of the collection with the name provided. More...
 

Properties

DittoScopedWriteTransaction this[string collectionName] [get]
 Creates a DittoScopedWriteTransaction object that will ensure that operations called on it are all in the context of the collection with the name provided. More...
 

Detailed Description

Exposes functionality that allows you to perform multiple operations on the store within a single write transaction.

You must use the Scoped(string) method to get collection-scoped access to the write transaction object, which will then allow you to perform insert, update, remove or evict operations using the write transaction.

Member Function Documentation

◆ Scoped()

DittoScopedWriteTransaction DittoSDK.DittoWriteTransaction.Scoped ( string  collectionName)
inline

Creates a DittoScopedWriteTransaction object that will ensure that operations called on it are all in the context of the collection with the name provided.

You can create many DittoScopedWriteTransaction objects per DittoWriteTransaction object.

Parameters
collectionNameThe name of the collection that the write transaction object should be scoped to.
Returns
A DittoScopedWriteTransaction that is scoped to the specified collection.

Property Documentation

◆ this[string collectionName]

DittoScopedWriteTransaction DittoSDK.DittoWriteTransaction.this[string collectionName]
get

Creates a DittoScopedWriteTransaction object that will ensure that operations called on it are all in the context of the collection with the name provided.

Parameters
collectionNameThe name of the collection that the write transaction object should be scoped to.

A DittoScopedWriteTransaction that is scoped to the specified collection.