Task 3 – Overview of LINQ To SQL, LINQ To XML, and LINQ to DataSet
As shown here LINQ provides a language integrated query framework for.NET. The features shown in the previous tasks can be used to query against relational databases, datasets, and data stored in XML. This overview demonstrated LINQ To Objects (In-Memory Collections). For a deeper understanding of using LINQ with databases, datasets, and XML, see the LINQ Project Overview Hands On Lab. Lab Summary
In this lab you preformed the following exercises:
Through the eight exercises you explored the new language features available in C# 3.0. Many of the features, such as implicitly typed local variables, extension methods, lambda expressions, and object initializers, provide a new level of convenience for C# developers. Together, the features create an expressive language for data access, allowing you to apply LINQ technology to your work, increasing your productivity as you are able to work with data as objects.
Appendix: Code Samples (used if not running sequentially through the lab)
This section contains the starting blocks of code required if skipping sections. All code written in this lab is contained in one file: program.cs Each exercise in this lab is structured to build upon the code written in the previous exercises. Compiled in this appendix are the complete sets of code that are generated by each exercise (the entire program.cs file). For example: If you wish to start at exercise 5, then you may start with the code provided for you in the exercise 5 below.
|