Click or drag to resize

ISessionWriteTransactionT Method (FuncITransaction, T, ActionTransactionConfigBuilder)

Execute given unit of work in a Write transaction with a specific TransactionConfig.

Namespace:  Neo4j.Driver
Assembly:  Neo4j.Driver.Simple (in Neo4j.Driver.Simple.dll) Version: 4.1.0
Syntax
T WriteTransaction<T>(
	Func<ITransaction, T> work,
	Action<TransactionConfigBuilder> action
)

Parameters

work
Type: SystemFuncITransaction, T
The FuncTResult to be applied to a new write transaction.
action
Type: SystemActionTransactionConfigBuilder
Given a TransactionConfigBuilder, defines how to set the configurations for the new transaction. This configuration overrides server side default transaction configurations. See TransactionConfig

Type Parameters

T
The return type of the given unit of work.

Return Value

Type: T
A result as returned by the given unit of work.
See Also