IDBContext.ExecuteNonQueryAsync Method

Relativity API
Asychronously executes a call to SQL

Namespace:  Relativity.API
Assembly:  Relativity.API (in Relativity.API.dll) Version: 640db774aa42dfbe1785add27fbb41844ec5c7d4
Syntax

Task<int> ExecuteNonQueryAsync(
	IQuery query
)

Parameters

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

Return Value

Type: Task<Int32>
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