开发者

What is Linq to Entities?

There are so many terms and it is getting hard to learn the thing yo开发者_StackOverflow社区u are after because of the noise.

Is Linq to Entities just the practice of using Linq queries against the entities generated by the ADO.NET Entity Framework? Or, is it a separate technology?

If it isn't a separate technology, why does it have another confusing name as though it were?


Is Linq to Entities just the practice of using Linq queries against the entities generated by the ADO.NET Entity Framework?

Yes. :)


LINQ to entities is a LINQ provider for entity framework model.

The thing that analyzes lambdas, part of entity framework.


To understand nature of LINQ thoroughly, i recommend book "Pro LINQ".


"LINQ" is a getting to be a rough term because people use it imprecisely in so many contexts.

A lot of people I've run into, when they say, "Linq" mean "LINQ to SQL".

LINQ really is a standard query system that integrated into the language which can fit on top of many different sources of data.

  • LINQ to Objects -> Using Linq to query objects in memory
  • LINQ to XML -> Using Linq to query XML documents
  • LINQ to Entities -> Using Linq to query the entities generated by the ADO.NET Entity Framework
  • LINQ to SQL -> Using Linq to query SQL Server tables (pretty much obsolete after Entity Framework 4.0)
  • LINQ to [Your favorite API] -> Linq can be used to query all sorts of data sources. We're seeing it used for SharePoint and MS CRM these days, but it's being used more and more against all sorts of stuff.


Linq to Entities is indeed practice to user Linq to query ADO.NET Entity framework. But under the hood there is some separate technology (provider) which converts expression tree built by linq to database query.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜