Click here to Skip to main content
16,013,338 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
which one is better for data access linq or sql
Posted
Updated 30-Jan-12 23:27pm
v2
Comments
Sibasisjena 31-Jan-12 5:32am    
Linq is better than sql because linq has more advantages than sql

That isn't really a question anyone can answer as is: they aren't that comparable.

Linq is capable of accessing more datasources than just SQL, but there is a learning curve attached. It's like comparing a train with a Ford Ka - they both do the same job in that they go from A to B, but they do it in totally different ways.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 31-Jan-12 20:36pm    
They are not. "Compile-time error: predicate 'better' is not defined." :-)
My 5.
--SA
i think similar like c vs c# if you are conscious about memory and performance then sql is better than linq other wise linq is better just code readability and easy to use with same pattern on list and enumerable objects.
 
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