Time for action – Configuring NHibernate using XML
In this exercise, we are going to implement a simple application which is using NHibernate to persist data to and read data from a relational database. As a database, we will use SQLite in file mode.
- Open Visual Studio and create a new project. Select Console Application as the project template. Call the project
- Due to some incompatibility issues of SQLite, we have to adjust the target framework of our application. In the Solution Explorer, right-click on the XmlConfigurationSample project and select Properties.
- On the Application tab, select .NET Framework 3.5 as Target framework:
- Switch to the Build tab and make sure that the Platform Target is set to Any CPU.
- Add a reference ...