Hi,
Maybe I missed something critical but this simple select over QueryOver raises "Could not determine member from u" exception:
var query = Session.QueryOver<User>(); var res = query.Select(u => u).List();
where User is an entity type.
So I can`t select overall type used in the QueryOver generic definition? I`m using this select because in my repository class I have methods like XXX(Expression<T,bool> where, Expression<T,T> select) and an overload XXX(Expression<T,bool> where) which passed 'u=>u' as the select parameter value to the base method.
Should I control this situation and don`t add the Select method call in this case?
Thanks in advance.
|