NPersistence Reference Guide
Set the lock mode type to be used for the query execution.

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

Syntax

   
 C# 
Query SetLockMode(
	LockModeType lockMode
)

Parameters

lockMode
LockModeType
lock mode

Return Value

the same query instance

Exceptions

ExceptionCondition
System..::..InvalidOperationException if the query is found not to be a Java Persistence query language SELECT query or a Criteria API query

See Also