Let's see how much time using MyGeneration and the L99-NHibernate template would have saved us by generating our POCOs and mapping files.
If you haven't already done so, download MyGeneration from http://sourceforge.net/projects/mygeneration/ and install it.
Download the L99-NHibernate template from http://www.mygenerationsoftware.com/TemplateLibrary/Download/?templateid=20584a7d-cad9-4e84-86eb-2da504d64781 and place it into the
Templates
folder of the MyGeneration installation (usuallyc:\Program Files\MyGeneration13\Templates
).Start MyGeneration from either the Start menu or by directly running
MyGeneration.exe
.The first time you run it, MyGeneration will present the Default Settings window. In this window, under Connection String, add the following connection string:
Provider=SQLOLEDB.1;Integrated Security=SSPI;Initial Catalog=ordering;Data Source=.\sqlexpress
In the Saved Connections box, type the name local, and click on the Save button.
Load the L99...