Click here to Skip to main content
Click here to Skip to main content

NHibernate Helper Kit

, 19 Aug 2006 GPL3
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

Introduction

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.

Installing

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.

Using

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...

License

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

Share

About the Author

Murat YILMAZ
Product Manager Doğan Online
Turkey Turkey
No Biography provided
Follow on   Twitter

Comments and Discussions

 
Questionnext version ? Pinmemberrajesh_mawale1-Nov-12 20:31 
Questionvs2010 Pinmember_Unkind_10-Aug-11 6:14 
GeneralMy vote of 5 PinmemberPrasanta_Prince9-May-11 0:07 
Questionnew version? PinmemberMember 167658925-Feb-11 19:49 
AnswerRe: new version? PinmemberMurat YILMAZ26-Feb-11 4:35 
GeneralGreat Tool:: A sugestion to make it current PinmemberMaruf Maniruzzaman19-Apr-09 8:23 
GeneralRe: Great Tool:: A sugestion to make it current PinmemberMonDeveloper21-Jan-10 14:03 
GeneralVS2008 PinmemberAhmed Emad Ahmed2-Apr-09 2:24 
QuestionHow To installing this helper [modified] Pinmembersognant3-Dec-08 13:26 
GeneralNh-Studio PinmemberAlexey Lizunov12-Jul-08 17:55 
GeneralCompletely bugged [modified] PinmemberMember 354156218-Feb-08 8:48 
GeneralRe: Completely bugged Pinmembermaamaa23-Apr-08 7:04 
Hello,
 
I don't understand how to install this tool. I've installed the .dlls and the .addin file in a addin folder approved by Visual Studio, but nothing appears in the Tools menu.
 
Did you enjoy this add in ? I'm afraid it is a little bugged... (on the top of that it doesn't evolve anymore...).
 
DO you know other tools that generate mapping files or simplify nhibernate projects deployment ?
 
regards,
 
mathmax
GeneralRe: Completely bugged PinmemberMurat YILMAZ23-Apr-08 11:00 
GeneralRe: Completely bugged Pinmembermaamaa23-Apr-08 11:50 
GeneralRe: Completely bugged PinmemberMurat YILMAZ23-Apr-08 11:02 
QuestionRe: Completely bugged Pinmemberclumox27-May-08 6:19 
AnswerRe: Completely bugged PinmemberMurat YILMAZ27-May-08 21:05 
QuestionRe: Completely bugged [modified] PinmemberMember 151873413-Nov-08 2:12 
GeneralMYSQL Pinmemberpabloar6-Jan-08 5:31 
Questionhow to use nHybernate helperkit in my application Pinmemberkrishnaprema4-Nov-07 20:29 
AnswerRe: how to use nHybernate helperkit in my application PinmemberMurat YILMAZ23-Apr-08 11:04 
QuestionSql Server 2005 Schemas PinmemberMehmet Serdar23-Oct-07 2:21 
Questionhow to un install NHibernate Helper Kit PinmemberNarjisMalik5-Oct-07 4:06 
QuestionOracleConnection PinmemberSinan Taviloglu10-Aug-07 22:08 
GeneralRe: OracleConnection PinmemberMurat YILMAZ23-Apr-08 11:04 
QuestionHow to log on the server using Windows authentication? PinmemberMarcelo_Zilli7-Aug-07 5:59 
AnswerRe: How to log on the server using Windows authentication? PinmemberMarcelo_Zilli7-Aug-07 16:12 
GeneralRe: How to log on the server using Windows authentication? PinmemberJ Valentin2-Dec-09 12:04 
GeneralI can't find the menu. Pinmemberhpzhao19-Jul-07 15:05 
QuestionCustom Store Produres Pinmembervgtav21-Jun-07 5:55 
QuestionHow to get it running with Vista? PinmemberM.Vo.18-Jun-07 0:19 
GeneralThank you Pinmembertcheepin24-May-07 21:12 
QuestionProblem installation nhibernateHelperKit Pinmembermajdoulina_2023-Apr-07 0:26 
QuestionRe: Problem installation nhibernateHelperKit [modified] Pinmembermajdoulina_2023-Apr-07 0:56 
AnswerRe: Problem installation nhibernateHelperKit Pinmemberzerdabi25-Apr-07 5:38 
AnswerRe: Problem installation nhibernateHelperKit Pinmemberhpzhao19-Jul-07 15:07 
AnswerRe: Problem installation nhibernateHelperKit Pinmemberkpatrickk17-Sep-07 22:36 
GeneralRe: Problem installation nhibernateHelperKit Pinmembermahbouni23-Oct-07 4:47 
GeneralRe: Problem installation nhibernateHelperKit Pinmemberclumox26-May-08 6:56 
GeneralORM Mixed with Code Generation PinmemberXin Zhao27-Mar-07 6:04 
GeneralUnable to connect to SQL 2005 express Pinmembersafknw21-Mar-07 12:08 
GeneralMySQL support PinmemberHarutMartirosyan10-Mar-07 0:21 
NewsInstallation Routine - Code update Pinmemberj-fux7-Mar-07 20:39 
GeneralVery promising.. Pinmemberrosdi23-Feb-07 19:54 
QuestionNew version? PinmemberWay.NET [Carlito]7-Feb-07 5:30 
QuestionDoes it work in VS2005 Express ? Pinmembercalvin_cch9-Nov-06 11:30 
AnswerRe: Does it work in VS2005 Express ? Pinmemberfcfm1-Mar-07 14:31 
GeneralMissing Float Data Type PinmemberNicole_E9-Nov-06 5:44 
GeneralProblem with installation PinmemberJO7529-Oct-06 23:08 
GeneralCodeSmith, MyGeneration, dotnettiers, ... PinmemberGreg Ennis23-Oct-06 18:10 

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

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

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