Click here to Skip to main content
13,663,464 members
Click here to Skip to main content
Add your own
alternative version


126 bookmarked
Posted 22 Jun 2006
Licenced GPL3

NHibernate Helper Kit

, 19 Aug 2006
Rate this:
Please Sign up or sign in to vote.
Here is a tool to help you build your NHibernate ORM applications.

Screenshot - figure6.gif


Here is a tool for the use of your own applications that NHibernate. You can easily install and use this helper kit. To download, please click the link at the top of the page. If you are using NHibernate, you need to write a lot of persistent classes and XML mapping for each persistent class. Also, you need to write the NHibernate config file. At this point, using this tool, you can automatically create all these files in a few seconds.


After you download the installation files, unzip the file and open the folder. Then, you will see the following:

  • Setup.exe (shortcut): You can install the add-in via this installer.
  • Files (folder): All the needed files are here.

Open setup.exe and you will see the following interface:

Screenshot - figure1.gif

Click Run, and it will install itself; it will take a few seconds.


After the installation, run Visual Studio 2005 and go to the Tools menu. You will see an add-in that is named Avva Mobile NHibernate Helper Kit BETA. There are four tab screens on the tool.

  1. Connection: This screen allows you to connect your database with connection parameters. It looks like the Visual Studio connection wizard. You need to set some parameters to connect to your database.
  2. Screenshot - figure2.gif

  3. Tables & Columns: This screen allows you to browse a selected database's tables and select them to create files. Also, if you want, you can see a table's column information by selecting from a table from a list and clicking "Preview Columns".
  4. Screenshot - figure3.gif

    Screenshot - figure4.gif

  5. Settings: This screen allows you to select some features, for example, copy the NHibernate DLL and use dynamic updates. Also, you have to select your project folder to configure the folders, namespaces, and assembly names.
  6. Screenshot - figure5.gif

  7. Generate: At the end of this, we can start the generate process. Just click Run and wait a few seconds. You can view all the process details in this section.
  8. Screenshot - figure6.gif

    After you've successfully completed the generating process, you can see the generated files in the project folder. If you selected "Copy NHibernate DLL to project" and other DLLs, the generator will copy it and create an NHibernate config file in your project's "bin" folder.

    Copies files to bin directory

    Also, the generator creates a folder named App_Code in your project folder to put persistent classes and mapping files in. It directly creates persistent classes to App_Code, and mapping files creates them in the NHMappings folder, as follows:

    App_Code folder for persistent classes

    NHMappings folder for mapping XML files

Let's check it out how it's looking.

Persistent class

Persistent class

Mapping the XML file

Mapping XML file

The next version will have...

  • VB.NET and C# language support
  • Table relationships
  • A sample using application blocks
  • Generic class implementation
  • And more according to your ideas, thoughts, and suggestions...


This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


About the Author

Product Manager Doğan Online
Turkey Turkey
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralRe: How to log on the server using Windows authentication? Pin
J Valentin2-Dec-09 11:04
memberJ Valentin2-Dec-09 11:04 
GeneralI can't find the menu. Pin
hpzhao19-Jul-07 14:05
memberhpzhao19-Jul-07 14:05 
QuestionCustom Store Produres Pin
vgtav21-Jun-07 4:55
membervgtav21-Jun-07 4:55 
QuestionHow to get it running with Vista? Pin
M.Vo.17-Jun-07 23:19
memberM.Vo.17-Jun-07 23:19 
GeneralThank you Pin
tcheepin24-May-07 20:12
membertcheepin24-May-07 20:12 
QuestionProblem installation nhibernateHelperKit Pin
majdoulina_2022-Apr-07 23:26
membermajdoulina_2022-Apr-07 23:26 
QuestionRe: Problem installation nhibernateHelperKit [modified] Pin
majdoulina_2022-Apr-07 23:56
membermajdoulina_2022-Apr-07 23:56 
AnswerRe: Problem installation nhibernateHelperKit Pin
zerdabi25-Apr-07 4:38
memberzerdabi25-Apr-07 4:38 
me too i'm using windows ;PVista

zerdabi ali

AnswerRe: Problem installation nhibernateHelperKit Pin
hpzhao19-Jul-07 14:07
memberhpzhao19-Jul-07 14:07 
AnswerRe: Problem installation nhibernateHelperKit Pin
kpatrickk17-Sep-07 21:36
memberkpatrickk17-Sep-07 21:36 
GeneralRe: Problem installation nhibernateHelperKit Pin
mahbouni23-Oct-07 3:47
membermahbouni23-Oct-07 3:47 
GeneralRe: Problem installation nhibernateHelperKit Pin
clumox26-May-08 5:56
memberclumox26-May-08 5:56 
GeneralORM Mixed with Code Generation Pin
Xin Zhao27-Mar-07 5:04
memberXin Zhao27-Mar-07 5:04 
GeneralUnable to connect to SQL 2005 express Pin
safknw21-Mar-07 11:08
membersafknw21-Mar-07 11:08 
GeneralMySQL support Pin
HarutMartirosyan9-Mar-07 23:21
memberHarutMartirosyan9-Mar-07 23:21 
NewsInstallation Routine - Code update Pin
j-fux7-Mar-07 19:39
memberj-fux7-Mar-07 19:39 
GeneralVery promising.. Pin
rosdi23-Feb-07 18:54
memberrosdi23-Feb-07 18:54 
QuestionNew version? Pin
Way.NET [Carlito]7-Feb-07 4:30
memberWay.NET [Carlito]7-Feb-07 4:30 
QuestionDoes it work in VS2005 Express ? Pin
calvin_cch9-Nov-06 10:30
membercalvin_cch9-Nov-06 10:30 
AnswerRe: Does it work in VS2005 Express ? Pin
fcfm1-Mar-07 13:31
memberfcfm1-Mar-07 13:31 
GeneralMissing Float Data Type Pin
Nicole_E9-Nov-06 4:44
memberNicole_E9-Nov-06 4:44 
GeneralProblem with installation Pin
JO7529-Oct-06 22:08
memberJO7529-Oct-06 22:08 
GeneralCodeSmith, MyGeneration, dotnettiers, ... Pin
Greg Ennis23-Oct-06 17:10
memberGreg Ennis23-Oct-06 17:10 
GeneralRe: CodeSmith, MyGeneration, dotnettiers, ... Pin
Mark Pitman27-Apr-07 12:02
memberMark Pitman27-Apr-07 12:02 
QuestionMySql Pin
marcdumon17-Oct-06 16:36
membermarcdumon17-Oct-06 16:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web01-2016 | 2.8.180810.1 | Last Updated 19 Aug 2006
Article Copyright 2006 by Murat YILMAZ
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid