Click or drag to resize

IAsyncSessionBeginTransactionAsync Method

Asynchronously begin a new transaction in this session using server default transaction configurations. 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 RunAsync(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 (in Neo4j.Driver.dll) Version: 4.1.0
Syntax
Task<IAsyncTransaction> BeginTransactionAsync()

Return Value

Type: TaskIAsyncTransaction
A task of a new transaction.
See Also