Click here to Skip to main content
15,893,722 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
pls some one tell that what is the difference between linq to sql and entity framework
and the use of both in mvc
i am new to both pls some one tell....
Posted
Comments
Matej Hlatky 24-Feb-13 14:41pm    
Repost of http://www.codeproject.com/Questions/551840/differenceplusbetweenplusDataClassesDataContextplu ?
Sergey Alexandrovich Kryukov 24-Feb-13 14:50pm    
The question makes no sense at all. Why not reading on these two topics?
—SA

1 solution

1. Entity framework has a full provider model. It supports not only SQL Server but also other database like Oracle, DB2, MySQL etc.

2. Most of the time L2S classes must be one-to-one with database objects e.g. Customer class can be mapped only with Customer table. Where as in Entity Framework you can map your domain class with multiple tables using various inheritance strategies like table per type (class) or table per hierarchy of classes etc.

3. You can have multiple modeling techniques using Entity Framework 4.1 like code first, model first or database first.

4. Microsoft has long term strategy to support and integrate Entity Framework with multiple Microsoft products.
 
Share this answer
 
Comments
King Fisher 21-Mar-15 8:49am    
Its two yrs old Question

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900