[英]nHibernate Method Delegate or Event is Expected
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();
This line is in error. 这条线有误。 Any guesses why? 任何猜测为什么?
query.OrderBy(() => clientAlias.Id).Desc();
The error says 错误说
Method Delegate or Event is Expected
I was not using 我没用
using NHibernate;
using NHibernate.Criterion;
Funny that resharper did not suggest that. 有趣的是,resharper并没有暗示这一点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.