Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: LINQ Cloud
what is LINQ computing?
please simply expalin what is LINQ?
Posted 28-Nov-12 4:29am
Comments
richcb at 28-Nov-12 10:31am
   
Language Integrated Query.
Hari Krishna Prasad Inakoti at 7-Feb-13 2:22am
   
:D
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
ProgramFOX at 28-Nov-12 13:30pm
   
Good answer, +5!
Krunal R at 29-Nov-12 3:45am
   
Thanks :)
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

About LINQ
 
It is a technique for querying data that is integrated into .NET languages such as C# and VB. As such, it is both strongly typed and IntelliSense-aware.
It has a single unitive syntax for querying multiple data sources such as relational data and XML data.
It is extensible; talented developers can write providers that allow LINQ to query any arbitrary data source.
It uses a declarative syntax that allows developers to tell the compiler or provider what to do, not how to do it.
It is hierarchical, in that it provides a rich, object-oriented view of data.
It is composable, in that the results of one query can be used by a second query, and one query can be a subclause of another query. In many cases, this can be done without forcing the execution of any one query until the developer wants that execution to take place.
It is transformative, in that the results of a LINQ query against one data source can be morphed into a second format. For instance, a query against a SQL database can produce an XML file as output.
 
Benefits of LINQ
 
Because LINQ is integrated into the C# language, it provides syntax highlighting and IntelliSense. These features make it easy to write accurate queries and to discover mistakes at design time.
Because LINQ queries are integrated into the C# language, it is possible for you to write code much faster than if you were writing oldstyle queries. In some cases, developers have seen their development time cut in half.
The integration of queries into the C# language also makes it easy for you to step through your queries with the integrated debugger.
The hierarchical feature of LINQ allows you to easily see the relationship between tables, thereby making it easy to quickly compose queries that join multiple tables.
The unitive foundation of LINQ allows you to use a single LINQ syntax when querying multiple data sources. This allows you to get up to speed on new technologies much more quickly. If you know how to use LINQ to Objects, it is not hard to learn how to use LINQ to SQL, and it is relatively easy to master LINQ to XML.
Because LINQ is extensible, you can use your knowledge of LINQ to make new types of data sources queriable.
After creating or discovering a new LINQ provider, you can leverage your knowledge of LINQ to quickly understand how to write queries against these new data sources.
Because LINQ is composable, you can easily join multiple data sources in a single query, or in a series of related queries.
The composable feature of LINQ also makes it easy to break complex problems into a series of short, comprehensible queries that are easy to debug.
The transformational features of LINQ make it easy to convert data of one type into a second type. For instance, you can easily transform SQL data into XML data using LINQ.
Because LINQ is declarative, it usually allows you to write concise code that is easy to understand and maintain.
The compiler and provider translate declarative code into the code that is actually executed. As a rule, LINQ knows more than the average developer about how to write highly optimized, efficient code. For instance, the provider might optimize or reduce nested queries.
LINQ is a transparent process, not a black box. If you are concerned about how a particular query executes, you usually have a way to examine what is taking place and to introduce optimizations into your query.
  Permalink  
Comments
CHill60 at 28-Feb-14 8:32am
   
I take it that you are neither Charlie Calvert nor Dinesh Kulkarni so quoting directly from the book "Essential LINQ" is not only rude, but plagiarism. You would have been better off just supplying the link to the Google Books entry
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

LINQ - Language Integrated Query is simply a unified programming model/framework for writing SQL queries in simple language(in which you are working for eg. C#,VB,etc) without learing SQL.Here unified programming model means once you write a LINQ query for a datasource that query will be fired/executed over different-different datasource.
 
For Example:
 
Linq To Sql query:
 
//
// var result=from m in DataContext.YourTableName select m;
//
 
This is simple Linq to Sql query for selecting a record from the database having table name "YourTableName"
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

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 databases, ADO.NET Datasets, and XML documents.
 
Language-Integrated Query (LINQ) is the name for a set of technologies based on the integration of query capabilities directly into the C# language (also in Visual Basic and potentially any other .NET language).
 
With LINQ, a query is now a first-class language construct, just like classes, methods, events and so on.
 
Example :
 
class LINQQueryExample
{
static void Main()
{
 
// Specify the data source.
int[] scores = new int[] { 97, 92, 81, 60,10,45,100,200 };
 
// Define the query expression.
IEnumerable scoreQuery =
from score in scores
where score > 80
select score;
 

 
SQL Syntax : select * from socres where column >80
 

 
// Execute the query.
foreach (int i in scoreQuery)
{
Console.Write(i + " ");
}
}
}
 

 
Result 81,92,97,100,200
 

 
Please read more information : http://prasadsqlandlinqtutorial.blogspot.in and http://prasadcsharp.blogspot.intitle="New Window">^]
  Permalink  
Comments
Nelek at 22-Nov-13 13:09pm
   
If you want to promote your blog (which should be done carefully to not be considered spam) by waking up old questions, at least you could format the code and the link properly.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 7

Introduction :
 
Language Integrated Query (LINQ) is a language feature in the .NET Framework that enables you to use common syntax to query data in a collection, an XML document, a database, or any type that supports the IEnumerable or IQueryable interface.
 
Why need linq :
 
Prior to LINQ, a developer needed to learn different syntax depending on the source of the data. If the source were a database, you needed to learn SQL. If the source were an XML document, you needed to learn XQuery. If the source were an array or a collection, you would write a looping structure, such as a foreach loop, that would enumerate through the items in the collection and filter them appropriately. LINQ enables you to use common syntax regardless of what the source is.
 

 

 
for more information about linq , Please visit here : -
 
http://www.asphelps.com/Linq/Linq-Tutorial.aspx
  Permalink  
Comments
CHill60 at 28-Feb-14 8:34am
   
Resuurecting year-old questions with links to your own website is usually considered spam. Be careful of doing this or your account could get disabled if enough people think of it as spam

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 CHill60 360
1 Sarvesh Kumar Gupta 238
2 OriginalGriff 218
3 Sergey Alexandrovich Kryukov 153
4 DamithSL 153


Advertise | Privacy | Mobile
Web03 | 2.8.140709.1 | Last Updated 28 Feb 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid