Regarding LINQ
Why we use LINQ
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Lalit MRank #1,186 · 1.5K reputationPosted Sep 20, 2011, 8:25 PM EDT
Visit this link
Use In SQL
Use In ASP.Net
Pravin MoreRank #1,419 · 1.2K reputationPosted Sep 20, 2011, 8:33 PM EDT
As per my knowledge about LINQ, linq not broken SQL but the need of LINQ is its Intigrated with C# (VB) useful for eliminating the impedance mismatch between programming languages and databases.
LINQ is simple for use compare to SQL.but thing is that they both have their own area of benifits.
Thanx,
Pravin.
Hemant KumarRank #1,202 · 1.5K reputationPosted Sep 20, 2011, 10:56 PM EDT
- Linq2SQL and EF do a lot of the plumbing work for you, and you're left with just implementing your business rules for the most part, so in theory you have a shorter development time.
The pragmatist in me says do not just what's best for the problem you're trying to solve, but also what your team is most comfortable with. If you need to get something to market quickly and your team knows ADO.NET really well, you may not want to chose this time to have them learn EF!
VulpesRank #55 · 29.2K reputationPosted Sep 21, 2011, 12:55 AM EDT
LINQ takes various forms including : LINQ to Objects, LINQ to XML, LINQ to SQL and the Entity Framework all of which allow the data source to be queried in a similar fashion, using either extension methods or query expressions.
Jignesh TrivediRank #16 · 50.3K reputationPosted Jan 2, 2012, 11:13 PM EST
Full meaning of LINQ is 'Language Integrated Query', which replaces the traditional sql query execution process. Moreover, it doesn't only applicable to manipulate database results, but it can also be used to manipulates array/list collections. LinQ was released as part of the .NET framework 3.0 and can be used from languages supported by .NET framework like C#, VB etc. The term 'LINQ To SQL' refers to the technology by which we can use LINQ for access SQL Databases.
also refer.
http://codesamplez.com/database/linq-to-sql-c-sharp-tutorial
http://msdn.microsoft.com/en-us/library/bb397897.aspx
http://msdn.microsoft.com/en-us/library/bb399398.aspx
hope this help.
AartiRank #2,383 · 594 reputationPosted Jan 4, 2012, 2:14 AM EST
LINQ:
We use the term language-integrated query to indicate that query is an integrated feature of the developer's primary programming languages (for example, Visual C#, Visual Basic). Language-integrated query allows query expressions to benefit from the rich metadata, compile-time syntax checking, static typing and IntelliSense that was previously available only to imperative code. Language-integrated query also allows a single general purpose declarative query facility to be applied to all in-memory information, not just information from external sources.