Using the LinqDataSource Control

I want to briefly describe the LinqDataSource control. You can use this control to represent LINQ queries. For example, the page in Listing 20.16 contains a simple search form for searching movies by director. The page uses a LinqDataSource to represent the LINQ query.

Listing 20.16. Entities\ShowLinqDataSource.aspx

images

images

images

The LinqDataSource in Listing 20.16 represents the following LINQ query:

You also can use the LinqDataSource ...

Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.