Haha, yes, sorry, I was combining code and made a typo.

In my code, it's actually this.Find().Where(predicate), where Find()
is returning Session.Query<T>();

So yes, the syntax is Session.Query<T>().Where(predicate);

More info: When I run this through NHProfiler, I am not getting any
SQL statements spit out when running in Release mode, whereas in Debug
mode, I get a whole slew of them, as expected... almost as if when
compiled in Release mode it is skipping a line where it actually
executes all the queries...

/ Michael /

On May 31, 4:03 pm, Ramon Smits <[email protected]> wrote:
> >    var results = Session.Query<User>.Find().Where(x => x.Email =
> > email)
>
> Strange syntax... Shouldn't this be
> Session.Query<User>().Where(x=>x.Email==email) ?

Reply via email to