最近刚学习NHibernate,但是做一个多表查询就出了问题 _session.CreateQuery("select distinct c from Usr c ," + " c.OrderTbls o where o.OrderDesc like :orderDate").SetString("orderDate", "%" + strOrderDesc + "%") .List<Usr>();上面是我写的HQL,但总是报c.OrderTbls is not mapped [select distinct c from myProject.Model.Usr c , c.OrderTbls o where o.OrderDesc like :orderDate]
- 2 回答
- 0 关注
- 352 浏览
添加回答
举报
0/150
提交
取消