How to enable NHibernate Second-Level Cache with NHibernate Linq Provider 1.0 ?
Second-Level Cache seems to work only with ICriteria usage.
How to enable NHibernate Second-Level Cache with NHibernate Linq Provider 1.0 ?
Second-Level Cache seems to work only with ICriteria usage.
Yes, I finally worked this one out:
public IQuerable<T> CreateLinqQuery()
{
var query = session.Linq<T>();
query.QueryOptions.SetCachable(true);
return query;
}