Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the difference between linq to sql class and entity framework [duplicate]

Possible Duplicate:
Entity Framework vs LINQ to SQL

what is the difference between linq to sql class and entity framework and what kind of situation linq to sql should use and when entity framework will be the best option.

like image 244
Thomas Avatar asked Feb 22 '11 18:02

Thomas


People also ask

What is the difference between LINQ to SQL and Entity Framework?

LINQ to SQL allow you to query and modify SQL Server database by using LINQ syntax. Entity framework is a great ORM shipped by Microsoft which allow you to query and modify RDBMS like SQL Server, Oracle, DB2 and MySQL etc. by using LINQ syntax. Today, EF is widely used by each and every .

Is Entity Framework and LINQ the same?

Entity Framework is an object-relational mapping (ORM) framework for connecting C# code to external databases, usually SQL Server. LINQ is a query language embedded into C# and a set of extension methods in order to make it useful.

What is difference between Dbml and EDMX?

edmx is the modeling file for Entity Framework. dbml is the modeling file for Linq 2 Sql. You should spend your time learning Entity Framework as Linq 2 Sql is deprecated.


1 Answers

Check out this link for a quick comparison. For me linq to sql is a quicker way to get a small application up and running and the entity framework is more for large more complex applications that you can take time to build a big foundation for.

like image 126
nickmoriarty Avatar answered Sep 30 '22 16:09

nickmoriarty