ESQL in Entity Framework

3.8k Views Asked by At

Is there any good and, if possible, exhaustive documentation about ESQL in entity framework ?

I'm trying to make a select of an entity object with modification of a property using a method; something like this :

SELECT foo FROM context.foo WHERE foo.Price = AddTaxes(foo.Price)
1

There are 1 best solutions below

5
On BEST ANSWER

There is msdn providing some documentation Entity SQL Language

You can also combine it with Linq2Entities with something like

context.foo
    .Where("it.Price == @Price", new ObjectParameter[] 
    { new ObjectParameter("Price", AddTaxes(price) } ).ToList()