15 June 2013

Differences between linq to sql and entity framework

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.

No comments:

Post a Comment