Clearly we have saved entities to the database in many of the previous recipes, but it's time to dig a bit deeper into how that actually works. This recipe will explore different ways of saving and what happens behind the scenes.
SessionRecipes, in Visual Studio.
NHibernateusing NuGet Packet Manager Console:
Install-Package NHibernate -project SessionRecipes
Install-Package NH4CookbookHelpers -project SessionRecipes
Form1.csfrom the project.
using NH4CookbookHelpers;to the top of
Program.csso that the last line in
Application.Run(new WindowsFormsRunner()); ...