How to return an IQueryable<Something> as an IQueryable<ISomething>

Posted by Brian David Berman on Stack Overflow See other posts from Stack Overflow or by Brian David Berman
Published on 2010-04-06T16:59:48Z Indexed on 2010/04/06 17:03 UTC
Read the original article Hit count: 565

Filed under:
|
|
|
|

I have a class Something that implements ISomething. How can I convert/cast from an IQueryable<Something> to an IQueryable<ISomething>. When I try to cast, I am able to compile, but the result of the cast is always NULL.

© Stack Overflow or respective owner

Related posts about LINQ

Related posts about iqueryable