首页 新闻 赞助 找找看

Criteria 查询条件如果是父对象中的非主键字段会报 could not resolve property

0
悬赏园豆:10 [已关闭问题] 关闭于 2021-09-09 14:30

主要代码:
critia.AddOrder(Order.Desc("ExplorationNoticeType.Id")); Id为父类主键
critia.AddOrder(Order.Desc("ExplorationNoticeType.OrderBy"));OrderBy为父类非主键

第二句代码会报错:could not resolve property:ExplorationNoticeType.OrderBy,请问这是什么原因?该如何解决

天亦玄的主页 天亦玄 | 初学一级 | 园豆:32
提问于:2020-01-17 14:08
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册