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 = ?????
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 = ?????
Expression<Func<Book, bool>> expression = p => p.Author.AuthorId == 5;
You use the IQueryable.Expression Property to access the IQueryable's Expression tree.