Before we actually connect to the database, we need to do a little "housekeeping". Just a note, if you run into trouble (that is, your code doesn't work like the walkthrough), then don't panic. See the troubleshooting section at the end of this Time for action section.
Before we get started, make sure that you have all of the Mapping and Common files and that your Mapping files are included as "Embedded Resources" (if you're not sure, see Chapter 4, Data Cartography). Your project should look as shown in the following screenshot:
The first thing we need to do is create a new project to use to create our sessions. Right-click on the Solution 'Ordering' and click on Add | New Project.
For our tests, we will use a Console Application and name it Ordering.Console. Use the same location as your previous project.
Next, we need to add a few references. Right-click on the References folder and click on Add Reference. In VB.NET, you need to right-click on the Ordering...