I get the error indicated in the topic in nHibernate
. I recently updated nHibernate
using the NuGet package manager. Installed version 4.0.4.4000
. I get an error in the following statements.
IQuery query = session.GetISession().GetNamedQuery("Query1");
query.SetCacheable(true).SetCacheRegion(CacheRegion.CacheRegion1);
return query.List<Type1>();
I can run the generated sql statement in DB without any errors. The same code used to work in the previous version nHibernate
before the upgrade.
If I comment on the middle line, the application works without problems.
source
share