Override the current session cache mode, just for this query.

Namespace: NHibernate.Impl
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public IQuery SetCacheMode(
	CacheMode cacheMode
)
Visual Basic
Public Function SetCacheMode ( _
	cacheMode As CacheMode _
) As IQuery
Visual C++
public:
virtual IQuery^ SetCacheMode(
	CacheMode cacheMode
) sealed

Parameters

cacheMode
Type: NHibernate..::..CacheMode
The cache mode to use.

Return Value

this (for method chaining)

Implements

IQuery..::..SetCacheMode(CacheMode)

See Also