开发者

ESQL in Entity Framework

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜