NPersistence Reference Guide
Execute a SELECT query that returns a single untyped result.

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

Syntax

   
 C# 
Object GetSingleResult()

Return Value

the result

Exceptions

ExceptionCondition
NPersistence..::..NoResultException if there is no result
NPersistence..::..NonUniqueResultException if more than one result
System..::..InvalidOperationException if called for a Java Persistence query language UPDATE or DELETE statement
NPersistence..::..QueryTimeoutException if the query execution exceeds the query timeout value set and only the statement is rolled back
NPersistence..::..TransactionRequiredException if a lock mode has been set and there is no transaction
NPersistence..::..PessimisticLockException if pessimistic locking fails and the transaction is rolled back
NPersistence..::..LockTimeoutException if pessimistic locking fails 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