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 WORDSQL SERVERWindows ADSODBC
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.studentCodeforeach(strName in stuMarks ){Console.writeLine(strName);}
NOTE
objStudentMarks can be Dot Net Collection, SQL SERVER, XML DOM, Data SET.