Chapter 6. LINQ—Language Integrated Query
In the previous chapters of this book we created one WCF service with three layers. In the data access layer we used the raw ADO.NET SQL adapters to communicate with the Northwind
database. In one of the following chapters we will explain how to use LINQ to Entities in our data access layer.
Before using LINQ to Entities in our data access layer we need to understand what LINQ or LINQ to Entities actually mean. Before understanding LINQ, we first need to understand some new C# features related to LINQ. In this chapter we will first explore these new C# features related to LINQ, then we will explore LINQ. In next two chapters we will explore LINQ to Entities, and after that we will apply LINQ to Entities to our WCF service data access layer.
In this chapter we will cover:
What LINQ is
New data type
var
Automatic properties
Object initializer and Collection initializer
Anonymous types
Extension methods
Lambda expressions
Built-in LINQ extension methods and...