Is it possible to get something like this:
return Session.Query<A>().Where(x => x is B).ToList();
where B derives from A working for an interface (i.e. get all objects that implement certain interface)? Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t directly convert this statement to SQL. First you will have to evaluate the query or use
AsEnumerable().Or:
The part after the
AsEnumerablewill be executed in memory.