Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
二级缓存可以使用QueryOptions. 但是如何在 Castle ActiveRecord Linq 中启用呢?ActiveRecordLinq类没有这样的属性。
QueryOptions
ActiveRecordLinq
我认为 QueryOptions 仅适用于旧的 Linq 提供程序(NH 3 之前)。使用 NH 3 ,您必须调用Cacheable(). IQueryable<T>我很确定您可以将相同的方法应用于 ActiveRecord 返回的 IQueryable。
Cacheable()
IQueryable<T>