NPersistence Reference Guide
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Execute an update or delete statement.
Namespace: NPersistenceAssembly: 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 deletedExceptions
Exception | Condition |
---|---|
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 |