Override the cache mode for this particular query.

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

Syntax

C#
IQueryOver<TRoot> CacheMode(
	CacheMode cacheMode
)
Visual Basic
Function CacheMode ( _
	cacheMode As CacheMode _
) As IQueryOver(Of TRoot)
Visual C++
IQueryOver<TRoot>^ CacheMode(
	CacheMode cacheMode
)

Parameters

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

Return Value

this (for method chaining)

See Also