Click here to Skip to main content
6,596,602 members and growing! (20,589 online)
Email Password   helpLost your password?
Platforms, Frameworks & Libraries » .NET Framework » Utilities     Advanced License: The GNU General Public License (GPL)

NHibernate Helper Kit

By Murat YILMAZ

Here is a tool to help you build your NHibernate ORM applications.
.NET 2.0, Win2K, WinXP, Win2003SQL 2000, VS2005, DBA, Dev
Posted:23 Jun 2006
Updated:19 Aug 2006
Views:168,008
Bookmarked:109 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
34 votes for this article.
Popularity: 5.41 Rating: 3.53 out of 5
6 votes, 17.6%
1
3 votes, 8.8%
2
2 votes, 5.9%
3
4 votes, 11.8%
4
19 votes, 55.9%
5

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 (GPL)

About the Author

Murat YILMAZ


Member

Occupation: Team Leader
Location: Turkey Turkey

Other popular .NET Framework articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 25 of 108 (Total in Forum: 108) (Refresh)FirstPrevNext
GeneralGreat Tool:: A sugestion to make it current PinmemberMaruf Maniruzzaman8:23 19 Apr '09  
GeneralVS2008 PinmemberAhmed Emad Ahmed2:24 2 Apr '09  
AnswerHow To installing this helper [modified] Pinmembersognant13:26 3 Dec '08  
GeneralNh-Studio PinmemberAlexey Lizunov17:55 12 Jul '08  
GeneralCompletely bugged [modified] PinmemberMember 35415628:48 18 Feb '08  
GeneralRe: Completely bugged Pinmembermaamaa7:04 23 Apr '08  
GeneralRe: Completely bugged PinmemberMurat YILMAZ11:00 23 Apr '08  
GeneralRe: Completely bugged Pinmembermaamaa11:50 23 Apr '08  
GeneralRe: Completely bugged PinmemberMurat YILMAZ11:02 23 Apr '08  
QuestionRe: Completely bugged Pinmemberclumox6:19 27 May '08  
AnswerRe: Completely bugged PinmemberMurat YILMAZ21:05 27 May '08  
QuestionRe: Completely bugged [modified] PinmemberMember 15187342:12 13 Nov '08  
GeneralMYSQL Pinmemberpabloar5:31 6 Jan '08  
Generalhow to use nHybernate helperkit in my application Pinmemberkrishnaprema20:29 4 Nov '07  
GeneralRe: how to use nHybernate helperkit in my application PinmemberMurat YILMAZ11:04 23 Apr '08  
QuestionSql Server 2005 Schemas PinmemberMehmet Serdar2:21 23 Oct '07  
Questionhow to un install NHibernate Helper Kit PinmemberNarjisMalik4:06 5 Oct '07  
QuestionOracleConnection PinmemberSinan Taviloglu22:08 10 Aug '07  
GeneralRe: OracleConnection PinmemberMurat YILMAZ11:04 23 Apr '08  
GeneralHow to log on the server using Windows authentication? PinmemberMarcelo_Zilli5:59 7 Aug '07  
GeneralRe: How to log on the server using Windows authentication? PinmemberMarcelo_Zilli16:12 7 Aug '07  
GeneralI can't find the menu. Pinmemberhpzhao15:05 19 Jul '07  
QuestionCustom Store Produres Pinmembervgtav5:55 21 Jun '07  
GeneralHow to get it running with Vista? PinmemberM.Vo.0:19 18 Jun '07  
GeneralThank you Pinmembertcheepin21:12 24 May '07  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 19 Aug 2006
Editor: Smitha Vijayan
Copyright 2006 by Murat YILMAZ
Everything else Copyright © CodeProject, 1999-2009
Web21 | Advertise on the Code Project