Both of them are presented as the latest technology, and sometimes a little confusing when to use them. Entity Framework and LINQ to SQL have much in common, but still differ from each other in several ways:
Entity Framework:
1. Enterprise development:
2. Works with a conceptual database model:
3. Works with all data sources:
4. ".EDMX" is created using the Entity Framework:
LINQ ::
1. Rapid application development:
2. Work with objects in the database:
3. Basically woks with SQL Server:
4. ".dbml" is created using LINQ to SQL:
:
The Entity Framework is more focused on Enterprise Development, where the scheme is usually optimized for storage considerations such as performance consistency and partitioning. The Entity Framework is designed around the disclosure of an application-oriented data model that is loosely coupled and may differ from the existing database schema. For example, you can map one object (class) to several or map several objects in one table. Entity Framework has a .edmx file (ADO.NET Entity Model) when added to the application.
LINQ to SQL mainly has support features for rapid application development for SQL Server. LINQ to SQL allows you to have a strongly typed view of your existing database schema. You can create LINQ queries on tables and return results as strong typed objects. LINQ to SQL has a ".dbml" (LINQ to SQL) file when added to the application. You can use LINQ to SQL by decorating existing classes with attributes.
Yogesh Jun 27 '14 at 11:37 2014-06-27 11:37
source share