Click or drag to resize

ISessionBeginTransaction Method (ActionTransactionConfigBuilder)

Begin a new transaction with a specific TransactionConfig in this session. A session can have at most one transaction running at a time, if you want to run multiple concurrent transactions, you should use multiple concurrent sessions. All data operations in Neo4j are transactional. However, for convenience we provide a Run(Query) method directly on this session interface as well. When you use that method, your query automatically gets wrapped in a transaction. If you want to run multiple queries in the same transaction, you should wrap them in a transaction using this method.

Namespace:  Neo4j.Driver
Assembly:  Neo4j.Driver.Simple (in Neo4j.Driver.Simple.dll) Version: 4.1.0
ITransaction BeginTransaction(
	Action<TransactionConfigBuilder> 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

Return Value

Type: ITransaction
A new transaction.
See Also