Afshar
Afshar

Reputation: 11483

How to enable second level cache in ActiveRecord Linq?

Second level cache can be enable using QueryOptions. But how could be enabled in Castle ActiveRecord Linq? ActiveRecordLinq class does not have such a property.

Upvotes: 0

Views: 659

Answers (1)

Mauricio Scheffer
Mauricio Scheffer

Reputation: 99730

I think QueryOptions applied only for the old Linq provider (pre NH 3). With NH 3 you have to call Cacheable() on the IQueryable<T>. I'm pretty sure you can apply the same method to an IQueryable returned by ActiveRecord.

Upvotes: 2

Related Questions