We now want to write the code necessary to create a session factory for our product inventory application.
NHibernate.ByteCode.Castle.dllto the project. This file can be found in the
libfolder. NHibernate needs this assembly to create proxies.
NHibernatestatement to the preceding code of
CreateSessionFactorymethod, as described above, to the preceding code.
MainWindowwith another row with a height set to
MainWindowand name it
btnCreateSessionFactoryand define its content as
Factory. Set the
1. Furthermore, define a click event handler for this new ...