开发者

Nhibernate lockmode issue

开发者 https://www.devze.com 2023-02-06 21:04 出处:网络
I am using Nhibernate 2.12 and am having an issue with LockMode. I am trying to add NoLock to the sql statement on an alias. When I do this using a crieria that doesn\'t provide a p开发者_如何转开发ro

I am using Nhibernate 2.12 and am having an issue with LockMode. I am trying to add NoLock to the sql statement on an alias. When I do this using a crieria that doesn't provide a p开发者_如何转开发rojectionlist it works fine. But when I add a projection list it gives me a nasty 'Object reference not set to an instance of an object' error on the NHibernate.Loader.Criteria.CriteriaLoader.ApplyLocks(SqlString sqlSelectString, IDictionary`2 lockModes, Dialect dialect) part of nhibernate.

Am I missing something?

Phil


I think projections is not support locking, so try to not use locking when using projections.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号