Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateAccessor.CacheQueries Property

Gets or sets a value indicating whether to cache all queries executed by this template.

[Visual Basic]
Public MustOverride Property CacheQueries() As Boolean
   Public Get
   End Get
   Public Set
   End Set
End Property
[C#]
public abstract bool CacheQueries { public get; public set; }

Property Value

true if cache queries; otherwise, false.

Remarks

If this is true, all IQuery and ICriteria objects created by this template will be marked as cacheable (including all queries through find methods).

To specify the query region to be used for queries cached by this template, set the QueryCacheRegion property.

See Also

HibernateAccessor Class | Spring.Data.NHibernate Namespace