Entity Framework vs Linq to Entities vs Linq to SQL

I read a lot of articles about how to work with a database in WPF .Net 4 application. As I understood, the main two technologies are:

  • Linq to SQL (L2S)
  • Entity Framework (EF)
  • but sometimes I also can see mention of Linq to Entities (L2E) technology, but can't find clear explanation what difference between EF and L2E.

    So, my question is: Does there is any difference between Entity Framework and Linq to Entities technologies? Or this is synonyms for one technology?

    Thanks.


    There are two ways of writing queries with Entity Framework:

  • Linq to Entities ( http://msdn.microsoft.com/en-us/library/bb386964.aspx )
  • Entity SQL ( http://msdn.microsoft.com/en-us/library/bb387145.aspx )
  • L2E is not a separate technology, but rather a part of EF.

    Have a look at this article for a comparison: http://thedatafarm.com/blog/data-access/choosing-linq-to-entities-vs-entity-sql-vs-entityclient/

    链接地址: http://www.djcxy.com/p/33506.html

    上一篇: linq到sql类和实体框架有什么区别

    下一篇: 实体框架vs Linq to Entities vs Linq to SQL