Click here to Skip to main content
15,881,092 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to use LINQ.
Now I am using Stored Procedures and General Queries in my applications.
Can any body explain , what are advantages of LINQ ?
Posted
Comments
Herman<T>.Instance 13-Sep-11 5:17am    
LINQ is not only used for sql queries!

Every new thing comes with some advantages and some disadvantages. Here is a quick list of LINQ from Microsoft Social MSDN[^]

Advantages
1. Quick turn around for development
2. Queries can be dynamically
3. Tables are automatically created into class
4. Columns are automatically created into properties
5. Relationship are automatically appeaded to classes
6. Lambda expressions are awesome
7. Data is easy to setup and use

Disadvantages
1. No clear outline for Tiers
2. No good way of view permissions
3. Small data sets will take longer to build the query than execute
4. There is an overhead for creating queries
5. When queries are moved from sql to application side, joins are very slow
DBML concurrency issues
6. Hard to understand advance queries using Expressions

Check out :
1. http://techieideas.blogspot.com/2010/02/advantages-and-disadvantages-of-linq.html[^]
2. http://stackoverflow.com/questions/14530/linq-to-sql-vs-stored-procedures[^]
3. http://stackoverflow.com/questions/2259894/what-are-the-advantages-or-disadvantages-of-using-dbml-for-linq2sql-queries[^]

Hope this helps.
All the best.
 
Share this answer
 
v2
Comments
BillWoodruff 13-Sep-11 11:54am    
+5 Great answer Sri Pravin !
Rajeshjoseph 30-Jul-13 23:58pm    
I think it is the same thing mentioned here: http://social.msdn.microsoft.com/Forums/en-US/cd952b8e-4bc6-4be9-87d3-cec7fbe7a0d8/advantages-disadvantages-of-linq
Pravin Patil, Mumbai 14-Sep-11 1:30am    
Thanks Bill..
 
Share this answer
 

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