How do I use the grid filter expresssion in an entity framework query in the NeedDataSource method?
For example after selecting from the grid column filters the filter expression is:
(iif(Comment == null,
""
, Comment).ToString().ToUpper().Contains(
"test"
.ToUpper())) AND (iif(OrderNo == null,
""
, OrderNo).ToString().ToUpper().StartsWith(
"830"
.ToUpper()))
How do I use it in my EF query
var orders = db.Orders.Where(o=>o.Status == 2);
Thanks.