Goals of this chapter:
• Understand the LINQ syntax options.
• Introduce how to write basic queries.
• Demonstrate how to filter, project, and order data using LINQ queries.
The main goal of this chapter is to introduce the basics of writing queries. These basics include the syntax options available for writing queries, how to filter data, how to order data, and how to return the exact result set you want. By the end of this chapter, you will understand how to write the most common query elements and, in the following chapter, you will expand this understanding into the more advanced query features of grouping and joining with other sources.
Most previous examples in this book have ...