The contents of this section
Start using NHibernate
1. Get NHibernate
2. Create DATABASE tables
3. Create a C # class library project
4. Writing the Domainmodel layer
4-1. Preparation of the persistence class
4-2. Write the mapping file
5. Write Data Access Layer
5-1. Auxiliary class
5-2. Write operation
6. Write test for data access layer
6-1. Configure NHibernate
6-2. Test
Conclusion
Start using NHibernate
We personally, to step by step to build a nhibernate program, I use a real scene electronic trading program to simulate the customer/order/Product classic combination. Because it is the first time to use NHibernate, our goal is to map a table and complete the use of NHibernate to read the data, the following picture gives us the first impression. We follow the basic development software thinking process step-by-step completion.
The development environment I use: Microsoft Visual Studio 2008 SP1, SQL Server 2008 Express, NHibernate 2.0 latest edition.