The value cannot be null. Parameter Name: includeInTuple in nHibernate

I get the error indicated in the topic in nHibernate. I recently updated nHibernateusing 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);//line giving error
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 nHibernatebefore the upgrade.

If I comment on the middle line, the application works without problems.

+4
source share

Source: https://habr.com/ru/post/1612923/


All Articles