October 2010
Intermediate to advanced
1920 pages
73h 55m
English
Before you can start performing queries using LINQ to SQL, you need to create one or more entity classes that represent the data you are querying. In this section, you learn how to code these classes by hand.
Imagine that you have the following database table named Movie that you want to perform queries against:

You can use the class in Listing 20.11 to represent this table.
Listing 20.11. Entities\App_Code\Movie.cs

The class in Listing 20.11 contains a property that corresponds to each column in the Movie database table. ...
Read now
Unlock full access