Why don't you try this:

session.QueryOver<model>().Where(param => param.Id == param.Id);


On Friday, May 10, 2013 4:16:44 PM UTC+1, [email protected] wrote:
>
> using  NHibernate.dll, v3.3.1.4000
>  
> try this....
>  
>  
>
> session.QueryOver<model>().Where(param => true);
>  
> throws error:
>  
> Could not determine member type from Constant, True, 
> System.Linq.Expressions.ConstantExpression
>  
>  
> Don't ask why I want to do that... trust me - there is a reason I need to 
> do this related to predicate building.
>  
>  
>  
>  
>  
>  
>  
>  
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to