Client clientAlias = null;
Note noteAlias = null;
Comment commentAlias = null;
query.JoinAlias(() => noteAlias.Client, () => clientAlias)
.JoinAlias(() => noteAlias.Comments, () => commentAlias);
query.Where(() => clientAlias.Id == clientId);
query.OrderBy(() => clientAlias.Id).Desc();
此行有误。任何猜测为什么?
query.OrderBy(() => clientAlias.Id).Desc();
错误说
Method Delegate or Event is Expected
答案 0 :(得分:2)
我没有使用
using NHibernate;
using NHibernate.Criterion;
有趣的是,resharper没有暗示这一点。