Hi
I am trying to understand and utilize the Dynamic Expression API available as System.Linq.Dynamic.
If I have a query like below:
var query =
db.Customers.
Where("City = @0", "London").
OrderBy("CompanyName").
Select("new(CompanyName as Name, Phone)");
with the Dynamic Expression API, would I be able to specify LIKE operator on the City field?
I want to do something like this:
var query =
db.Customers.
Where("City LIKE @0", "L").
OrderBy("CompanyName").
Select("new(CompanyName as Name, Phone)");
How can I do this?
Thanks much in advance!