Search code examples
linq-to-sqlentity-frameworkado.netlinq-to-entities

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.

Is there any difference between Entity Framework and LINQ to Entities technologies or this is two synonyms for one technology?


Solution

  • There are two ways of writing queries with Entity Framework:

    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/