I know this doesn't directly address your question, but have you
considered using results.Any() in place of results.Count > 1 ?

-Michael

On May 31, 1:11 pm, Beefy <[email protected]> wrote:
> 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) ?- Hide quoted text -
>
> - Show quoted text -

Reply via email to