0
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
4

1 回答 1

2

我没有使用

using NHibernate;
using NHibernate.Criterion;

有趣的是,resharper 并没有这么建议。

于 2012-06-13T13:07:07.443 回答