Hi, if you call: session.Query<T>().Cacheable().CacheMode(CacheMode.Normal).Single(...);
It throws the error: "Specified method is not supported." I assume I have to place the Cacheable bit at the end to get this to work. This is abit of an issue for me as my repository handles the cacheable part and I don't wish to expose the Nhibernate extension methods outside of my repository. In the past I simply said: session.Linq<T>().QueryOptions.SetCachable(true).SetCacheMode(CacheMode.Normal); And it all worked fine. I'd appreciate it if someone could let me know where this is something that is likely to be fixed soon or an alternative way i can achieve this. Thanks -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
