NPersistence Reference Guide
Execute an update or delete statement.

Namespace: NPersistence
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

   
 C# 
int ExecuteUpdate()

Return Value

the number of entities updated or deleted

Exceptions

ExceptionCondition
System..::..InvalidOperationException if called for a Java Persistence query language SELECT statement or for a criteria query
NPersistence..::..TransactionRequiredException if there is no transaction
NPersistence..::..QueryTimeoutException if the statement execution exceeds the query timeout value set and only the statement is rolled back
NPersistence..::..PersistenceException if the query execution exceeds the query timeout value set and the transaction is rolled back

See Also