Hi everyone,

When I execute any query, that is cachable in default region like this
with enabled statistics like this:


                session.CreateQuery("from Node n where n.Name
= :name")
                    .SetString("name", nodeName)
                    .SetMaxResults(1)
                    .SetCacheable(true)
                    .UniqueResult<Node>();

I get NullRefence excepiton. It seems like NHibernate cannot fire
CacheMissed event, because the region has'n been created yet. If I
manually set region, that is defined somewhere in config, everything
works fine.

Is it ok ?

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to