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