Open pasqualedante opened 3 years ago
if I execute this statement the exception stated in subject is throw: var jk = session.QueryOver<T>().Where(x => 1 == 1).Take(1);
var jk = session.QueryOver<T>().Where(x => 1 == 1).Take(1);
if I execute this statement via ::Query and not via ::QueryOver all works fine: var jk = session.Query<T>().Where(x => 1 == 1).Take(1);
var jk = session.Query<T>().Where(x => 1 == 1).Take(1);
This differtent behavior is by design?
Thanks in advance.
I don't think it's by design - simply not implemented. My guess it would work parametrized:
var v = 1; var jk = session.QueryOver<T>().Where(x => v == 1).Take(1);
if I execute this statement the exception stated in subject is throw:
var jk = session.QueryOver<T>().Where(x => 1 == 1).Take(1);
if I execute this statement via ::Query and not via ::QueryOver all works fine:
var jk = session.Query<T>().Where(x => 1 == 1).Take(1);
This differtent behavior is by design?
Thanks in advance.