Method RunAsync
RunAsync(string, Action<TransactionConfigBuilder>)
Asynchronously run a query within an AutoCommit transaction. Uses the specific TransactionConfig and returns a task of result stream. This method accepts a String representing a Cypher query which will be compiled into a query object that can be used to efficiently execute this query multiple times. This method optionally accepts a set of parameters which will be injected into the query object query by Neo4j.
Task<IResultCursor> RunAsync(string query, Action<TransactionConfigBuilder> action = null)
Parameters
querystringA Cypher query.
actionAction<TransactionConfigBuilder>Given a TransactionConfigBuilder, defines how to set the configurations for the new transaction.
Returns
- Task<IResultCursor>
A task of a stream of result values and associated metadata.
RunAsync(string, object, Action<TransactionConfigBuilder>)
Asynchronously run a query within an AutoCommit transaction. Uses the specific TransactionConfig and returns a task of result stream. This method accepts a String representing a Cypher query which will be compiled into a query object that can be used to efficiently execute this query multiple times. This method optionally accepts a set of parameters which will be injected into the query object by Neo4j.
Task<IResultCursor> RunAsync(string query, object parameters, Action<TransactionConfigBuilder> action = null)
Parameters
querystringA Cypher query.
parametersobjectThe query parameters. See Query(string, object) for a full description of how objects are converted to Cypher parameter maps, including support for anonymous types, POCOs, dictionaries, nested objects, property renaming with CypherParameterMappingAttribute, and global name translation.
actionAction<TransactionConfigBuilder>Given a TransactionConfigBuilder, defines how to set the configurations for the new transaction.
Returns
- Task<IResultCursor>
A task of a stream of result values and associated metadata.
RunAsync(string, IDictionary<string, object>, Action<TransactionConfigBuilder>)
Asynchronously run a query within an AutoCommit transaction. Uses the specific TransactionConfig and returns a task of result stream. This method accepts a String representing a Cypher query which will be compiled into a query object that can be used to efficiently execute this query multiple times. This method optionally accepts a set of parameters which will be injected into the query object query by Neo4j.
Task<IResultCursor> RunAsync(string query, IDictionary<string, object> parameters, Action<TransactionConfigBuilder> action = null)
Parameters
querystringA Cypher query.
parametersIDictionary<string, object>Input parameters for the query.
actionAction<TransactionConfigBuilder>Given a TransactionConfigBuilder, defines how to set the configurations for the new transaction.
Returns
- Task<IResultCursor>
A task of a stream of result values and associated metadata.
RunAsync(Query, Action<TransactionConfigBuilder>)
Asynchronously run a query within an AutoCommit transaction. Uses the specific TransactionConfig and return a task of result stream.
Task<IResultCursor> RunAsync(Query query, Action<TransactionConfigBuilder> action = null)
Parameters
queryQueryA Cypher query, Query.
actionAction<TransactionConfigBuilder>Given a TransactionConfigBuilder, defines how to set the configurations for the new transaction.
Returns
- Task<IResultCursor>
A task of a stream of result values and associated metadata.