IDBContextExecuteNonQueryAsync Method

Relativity API
Asychronously executes a call to SQL

Namespace:  Relativity.API
Assembly:  Relativity.API (in Relativity.API.dll) Version: 17.0.1.1 588f15fd7550dbf54835f3417a0142d4ea37dbb5
Syntax

Task<int> ExecuteNonQueryAsync(
	IQuery query
)

Parameters

query
Type: Relativity.API.ContextIQuery
the IQuery settings to present to the call to the SQL database.

Return Value

Type: TaskInt32
For UPDATE, INSERT, and DELETE statements, the return value is the number of rows affected by the command. When a trigger exists on a table being inserted or updated, the return value includes the number of rows affected by both the insert or update operation and the number of rows affected by the trigger or triggers. For all other types of statements, the return value is -1. If a rollback occurs, the return value is also -1.
See Also

Reference