Related To :
Create a Lambda Expression With 3 conditions
Convert Contains To Expression Tree
Convert List.Contains to Expression Tree
Please consider above questions.
I want to write a query for this:
using (MyEntities context = new MyEntities())
{
var DbSet = context.CreateObjectSet<T>();
var Max = DbSet.Where(exp).Select(selector).Max();
}
I don't know how to write a code for selector
. What Select
overload I should use? and How I can write that using Expression Tree?
Thanks