Adding the Data Source

To add a data source based on the Northwind database (used in several other code examples in this book), follow these steps:

1. Right-click the NorthwindBusinessApplication.Web project and select Add New Item; in the dialog select the ADO.NET Entity Data Model template, name it Northwind.edmx, and click OK.

2. When the wizard starts, choose to generate the model from an existing database, and next select the Northwind database available on SQL Server as the data source.

3. When the list of database objects is available, select at least the Orders table and then click Finish.

Tip

The web application project represents the server-side application that exposes data through services. Remember that Silverlight applications ...

Get Visual Basic® 2010 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.