what are differences between linq to sql and entity framework

 Posted by Rajkatie on 3/27/2012 | Category: .NET Framework Interview questions | Views: 8137 | Points: 40
Answer:

Linq to Sql
--------------------
1) Its only works with Sql server.
2) Used for rapid application development.
3) It does not support for complex type.
4) It can't generate db from model.
5) Mapping type ( class to single table)
6) We can query data using DataContext.

Entity framework
--------------------
1) Its works with variety of db products.
2) Can not used for rapid application development.
3) It provides support for complex type.
4) It can generate db from model.
5) Mapping type ( class to multiple tables)
6) We can query data using esql,object services,entity client and linq to entities.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response