I am using a ScalarQuery that I want to to cache the results of in the
nhibernate query cache.
ScalarQuery query = new ScalarQuery(some_type,
"from Entity t where t.Property = ?", some_value);
return ActiveRecordMediator.ExecuteQuery(query);
Doing this sort of thing in NHibernate is forward:
IList blogs = sess.CreateQuery("from Blog blog where blog.Blogger
= :blogger")
.SetEntity("blogger", blogger)
.SetMaxResults(15)
.SetCacheable(true)
.SetCacheRegion("frontpages")
.List();
I'm currently using AR version 1.0.3.0... does it support use of the
query cache or will I have to use the Session directly?
Cheers,
Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" 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/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---