Reputation: 11483
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
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