开发者

Nhibernate lockmode issue

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜