2012-06-13 1 views
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(); 

이 줄은 잘못되었습니다. 어떤 추측인가? 내가 ReSharper에서 그 제안하지 않았다nHibernate 메서드 대리자 또는 이벤트가 필요합니다.

using NHibernate; 
using NHibernate.Criterion; 

재미 사용하지 않은

Method Delegate or Event is Expected 

답변

2

query.OrderBy(() => clientAlias.Id).Desc(); 

오류는 말한다.

+1

같은 문제가 있었지만, 이번에는 포함 Linq를 잊어 버렸습니다. resharper의 유용한 도움도 없습니다. – dinamite

+0

다행 이니 도움을 얻을 수 있습니다 :) – joncodo

관련 문제