Category Archive for: Language Integrated Query

LINQ Providers

.NET 3.5 includes several LINQ providers. A LINQ provider implements the standard query operators for a specific data source. LINQ providers might implement more extension methods that are defined by LINQ, but the standard operators at least must be implemented. LINQ to XMLimplements more methods that are particularly useful with XML, for example the methods Elements (),Descendants, and Ancestors…

Read More →

Expression Trees

With LINQ to objects, the extension methods require a delegate type as parameter: this way, a Lambda expression can be assigned to the parameter. Lambda expressions can also be assigned to parameters of , type Expression<T>. The type’Expression<T> specifies that an expression tree made from the Lambda expression is stored in the assembly. This way the expression can…

Read More →

Standard Query Operators

Where, Order By Descending, and Select are only few of the query operators defined by LINQ. The LINQ query defines a declarative syntax for the most common operators. There are many more standard query operators available. The following table lists the standard query operators defined by LINQ . Following examples of using these operators. Filtering Have a…

Read More →

LINQ Overview

Before getting into the features of LINQ, this section uses an example to show how queries across objects were done before LINQ was available. As you read on, the query will evolve to show how the LINQ query is reached. By going through the steps you will know what’s behind the LINQ query. The example in this chapter…

Read More →

Language Integrated Query

LINQ (Language Integrated Query) is the most important new feature of C# 3.0 and .NET 3.5. LINQ integrates query syntax inside the C# programming language and makes it possible to access different data sources with the same syntax. LINQ makes this possible by offering an abstraction layer. This chapter gives you the core foundation of LINQ and the…

Read More →

Back to Top