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();

This line is in error. Any guesses why?

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

The error says

Method Delegate or Event is Expected
joncodo
  • 2,298
  • 6
  • 38
  • 74

1 Answers1

2

I was not using

using NHibernate;
using NHibernate.Criterion;

Funny that resharper did not suggest that.

joncodo
  • 2,298
  • 6
  • 38
  • 74