Click here to Skip to main content
15,890,946 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
Please anyone let me know the basic purpose of Linq??....How is it better as compared to Ado.net ?

thanks in advance
Posted
Comments
Sergey Alexandrovich Kryukov 23-Feb-11 22:34pm    
Amazingly invalid second question.
--SA

It's a general-purpose language-intergrated querying toolset used to access data contained in in-memory collections/objects, databases, XML documents, a filesystem, or pretty much any other data source you care to mention.

"Better" is a subjective term. If you're using .Net 2.0, Linq isn't even available, so ADO is the better choice.
 
Share this answer
 
v2
touseef4pk wrote:
How is it better as compared to Ado.net ?

It depends on how you use it. It may get worst performance if not used properly.

http://blogs.msdn.com/b/wriju/archive/2008/07/14/linq-to-sql-vs-ado-net-a-comparison.aspx[^]

Google[^] for more...
 
Share this answer
 
v2

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