Databases Reference
In-Depth Information
When a new entity data model is added to the project, Visual Studio automatically opens
the Entity Data Model Wizard that guides you through the process of creating the model.
You can choose to create an empty data model, where you manually define new entities,
specify their properties and associations, and then map these definitions to the storage
definitions imported from a database later. However, in this example, you choose the
option to generate the model from the database. After prompting you to enter the connec-
tion string, the wizard displays the page shown in Figure 1.5 for you to select the database
tables, views, and stored procedures to be included in the model.
FIGURE 1.5 Entity Data Model Wizard.
In this example, you want to include all database tables in the model. The resulting
Northwind entity data model, after some cleanup to improve readability, is shown in
Figure 1.6.
 
Search WWH ::




Custom Search