What is LinQ in C# with Example

random

What is LinQ in C# with Example

What is linq in c# and its advantages

.Net LinQ stands for Language Integrated Query. LinQ is a set of features introduced in Visual Studio 2008 that extends powerful query capabilities to the language syntax of C# and Visual Basic. 

LinQ introduces standard, easily-learned patterns for querying and updating data, and the technology can be extended to support potentially any kind of data store. Visual Studio includes LinQ provider assemblies that enable the use of LINQ with .net framework collections, SQL Server database, ADO.net Data-sets, and XML documents. In short LinQ is a technique used to retrieve data from any object that implements the IEnumerable<T> interface.
linq tutorial for beginners,linq in c#,linq tutorial,linq interview questions,linq to sql,linq examples,
linq benefits
Why use LinQ instead of SQL
  • LinQ is integrated into C# and VB programming languages and it provides syntax highlighting and IntelliSense features and even you can debug your queries using integrated debugger in Visual Studio
  • It is possible to write codes much faster than older queries and lets you save half of the query writing time using LinQ.
  • You can easily see the relationships between tables and it helps you compose your query that joins multiple tables using LinQ.
  • Transformation features of LinQ make it easy to convert data of one type into a second type. For example, you can easily transform SQL data into XML data using LinQ.

Find the below C# LinQ Example :-
  • SQLSelect * from Customer
  • In LinQvar Result = from c in db.Customer select c;
What is LinQ in C# with Example Reviewed by Ravi Kumar on 3:47 PM Rating: 5

No comments:

All Rights Reserved by Etechpulse © 2012 - 2017

Contact Form

Name

Email *

Message *

Powered by Blogger.