August 2010
Intermediate to advanced
1224 pages
34h 17m
English
Let’s examine exactly what has taken place behind the scenes as a result of the drag-and-drop operation between Server Explorer and the O/R Designer.
For one, the connection string necessary to open a connection to the selected database is automatically stored in the app.config (or web.config) file for you. This is then leveraged by LINQ to make calls into the database when needed. In addition, a new class has been defined. Here is a snippet from the Employee class showing its constructor:

The O/R Designer actually “de-pluralizes” entity names for you automatically. Many HR databases, for instance, might choose to implement an ...