4
string query = "update User u set u.PointsTotal = 1 join u.Rounds r where r.RoundId = :round and (r.Row1 & :val) > 0";
NHibernateSession.CreateQuery(query)
.SetByte("val", (byte)val)
.SetInt32("round", roundId)
.ExecuteUpdate();
只是给了我“给定的密钥不在字典中”。在Hibernate中使用HQL更新查询
是的,关系正常工作,可以做的选择....
艾柯!我一直在寻找这两天!非常感谢! :-) – zakmck 2013-04-08 14:47:18