Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linq to SQL and Entity Framework differences?

What is the differences between those 2 assuming I'm using SQL Server as my database? Are they the same?

like image 390
Funky81 Avatar asked Nov 18 '08 22:11

Funky81


People also ask

Is Entity Framework and LINQ the same?

Entity framework is ORM Model, which used LINQ to access database, and code is autogenerated. It enables developers to work with data using objects of domain specific classes without focusing on the underlying database tables and columns where this data is stored.

Is Entity Framework based on LINQ?

Entity Framework Core uses Language-Integrated Query (LINQ) to query data from the database. LINQ allows you to use C# (or your . NET language of choice) to write strongly typed queries.

What is the difference between ADO.NET Entity Framework and LINQ?

Entity framework is ORM Model, which used LINQ to access database, and code is autogenerated whereas Ado.net code is larger than Entity Framework. Ado.net is faster than Entity Framework. 1. ADO.Net is create bunch of data layer code, EF is not create.


1 Answers

This post points to some info. in particular 3 main differences:

  • The ability to query relational stores other than Microsoft SQL Server

  • A full textual query language not limited to LINQ's language support

  • Advanced mapping facilities, such as mapping a single class to multiple tables

like image 119
rbrayb Avatar answered Oct 18 '22 03:10

rbrayb