How-To Convert IQueryable Expression Tree to Lambda

Posted by Yoann. B on Stack Overflow See other posts from Stack Overflow or by Yoann. B
Published on 2010-06-12T10:24:49Z Indexed on 2010/06/12 10:33 UTC
Read the original article Hit count: 267

Filed under:
|

Hi,

How can i convert a IQueryable Expression Tree to a Expression<Func<T,bool>> Expression.

IQueryable<Book> Books;

var query = Books.Where(p => p.Author.AuthorId == 5);

Expression<Func<Book, bool>> expression = ?????

© Stack Overflow or respective owner

Related posts about c#

Related posts about lambda-expressions