.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> .NET Framework >> Post New Question Subscribe to Interview Questions

What is LINQ ?

Posted By :Prasanti Prusty     Posted Date :December 21, 2009    Points :10   Category :.NET Framework 
NET Language Integrated Query

You can also find related Interview Question to What is LINQ ?  below: 

Explain about LINQ?

  
Language integrated query or LINQ provides developers to query data. It uses strongly typed queries and results. Developer productivity increases by the usage of compile time error checking and intellisense. This feature is common on number of data types. (More...)

Explain about LINQ?

  
Language integrated query or LINQ provides developers to query data. It uses strongly typed queries and results. Developer productivity increases by the usage of compile time error checking and intellisense. This feature is common on number of data types. (More...)

What is LINQ?

  
It stands for Language Integrated Query. LINQ is collection of standard query operators that provides the query facilities into .NET framework language like C# , VB.NET. (More...)

How LINQ is beneficial than Stored Procedures?

  
There are couple of advantage of LINQ over stored procedures.

1. Debugging - It is really very hard to debug the Stored procedure but as LINQ is part of .NET, you can use visual studio's debugger to debug the queries.

2. Deployment - With stored procedures, we need to provide an additional script for stored procedures but with LINQ everything gets complied into single DLL hence deployment becomes easy.

3. Type Safety - LINQ is type safe, so queries errors are type checked at compile time. It is really good to encounter an error when compiling rather than runtime exception! (More...)

How LINQ is beneficial than Stored Procedures?

  
There are couple of advantage of LINQ over stored procedures.

1. Debugging - It is really very hard to debug the Stored procedure but as LINQ is part of .NET, you can use visual studio's debugger to debug the queries.

2. Deployment - With stored procedures, we need to provide an additional script for stored procedures but with LINQ everything gets complied into single DLL hence deployment becomes easy.

3. Type Safety - LINQ is type safe, so queries errors are type checked at compile time. It is really good to encounter an error when compiling rather than runtime exception! (More...)

Which assembly represents the core LINQ API?

  
System.Query.dll assembly represents the core LINQ API. (More...)

Advantages of LINQ

  
LINQ queries offer three main advantages over traditional foreach loops:

1)They are more concise and readable, especially when filtering multiple conditions.

2)They provide powerful filtering, ordering, and grouping capabilities with a minimum of application code.

3)They can be ported to other data sources with little or no modification.

(More...)

Why LINQ is having select clause at the end?

  
Due to IntelliSense of Visual Studio.

If the select clause was in the first of LINQ, then the IDE cannot populate the properties inside the object.

Eg: from f in db.Forum where f.Id > 0 select f.Name;

If the select was in front - the "select f." could not populate any autocomplete properties or methods. (More...)

What is LINQ?

  
LINQ stands for Language Integrated Query.

LINQ is a data querying methodology which provides querying capabilities to .Net languages with syntax similar to SQL query.

LINQ has a set of querying operators that can be used to query in memory object collection, Sql database, XML, etc. LINQ processing engine will then convert the LINQ query to native query specific to the database to execute against the datasource. Since, the querying feature is integrated with the language; one can build an efficient query based on the language of their choice.

With Visual Studio, we have intelligence support and with language support, we have type safety and compile-time error checks. (More...)

What are the four LINQ Providers types in .NET Framework 3.0

  
The four LINQ Providers types introduced in .NET Framework 3.0

a. LINQ to DataSets - For handling LINQ queries against ADO.NET DataSets.
b. LINQ to Objects - For handling a LINQ query against a collection of objects
c. LINQ to XML - For handling an XPATH query against XML documents
d. LINQ to SQL - For handling LINQ queries against Microsoft SQL Server.
(More...)

What are the four language extensions in C# 3.0 useful for LINQ

  
a) Lambda Expressions--A lambda expression is an anonymous function that can be used to create delegates.
b) Anonymous Types--Anonymous types are used to create a set of read-only properties into a single object without defining a type first
c)Object Initializers--Object Initializers is a new offering in C# 3.0 to create and initialize the objects in one step.
d) Implicitly Typed Variables --Can be assigned to any type.keyword used is var

(More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend