开发者

ESQL in Entity Framework

开发者 https://www.devze.com 2023-02-13 09:49 出处:网络
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; somethin

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.Pric开发者_StackOverflow中文版e)


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()
0

精彩评论

暂无评论...
验证码 换一张
取 消