Interview Q&A LINQ 

PART1

http://becomeadeveloper.in/

Q)   What  is  LINQ And how it helps in programing?

A) LINQ is a uniform programming model for any kind of data access.  LINQ enables you to query and manipulate data independently of data sources. 

LINQ SUPPORTs

XML  EXCEL WORD SQL SERVER Windows ADS ODBC

A) LINQ works in a uniformed manner over any kind of data source. It’s like a query language which can query any data source and any transform.   LINQ also provides full type safety and compile time checking.

A) LINQ can serve as a good entity for middle tier. So it will sit in between the UI and data access layer. LINQ can serve as a good entity for middle tier. So it will sit in between the UI and data access layer.

Query)  var stuMarks from mrk in  objStudentMarks  where  mrk.subject ="Maths" select mrk.studentCode foreach(strName in stuMarks ){ Console.writeLine(strName); }

NOTE

objStudentMarks can be  Dot Net Collection, SQL SERVER, XML DOM, Data SET.

Visit Our Site

Arrow