5,138,005 members and growing! (13,954 online)
Email Password   helpLost your password?
Platforms, Frameworks & Libraries » .NET Framework » General     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, Win2003, Windows, .NETSQL, VS, SQL 2000, VS2005, DBA, Dev

Posted: 23 Jun 2006
Updated: 19 Aug 2006
Views: 105,178
Announcements



Search    
Advanced Search
Sitemap
27 votes for this Article.
Popularity: 4.94 Rating: 3.45 out of 5
5 votes, 18.5%
1
3 votes, 11.1%
2
2 votes, 7.4%
3
3 votes, 11.1%
4
14 votes, 51.9%
5
Note: This is an unedited contribution. If this article is inappropriate, needs attention or copies someone else's work without reference then please Report This Article
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. The target of this tool, if you are using the NHibernate, is that you need to write a lot of persistent class and XML mapping for each persistent class. Also, you need to write the NHibernate config file. At this point, to use 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 file and folder:

  • Setup.exe(shortcut): You can install the add-in via this installer.
  • Files(folder): All needed files 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 4 tab screens on the tool.

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

Screenshot - figure2.gif

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

Screenshot - figure3.gifScreenshot - figure4.gif

3 - 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, namespace and assembly names.

Screenshot - figure5.gif

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

Screenshot - figure6.gif

After the succesfully you've completed the generating process, you can see generated files in the Project folder. If you selected "Copy Nhibernate DLL to project" and other DLLs, the generator will copy it and create a NHibernate config file to 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 XML File

Mapping XML file

The Next Version will Support...

  • VB.NET and C# language support
  • Table relationships
  • Sample using application blocks
  • Generic class implementing
  • And according to your ideas, thought, suggests...

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


Working with all of the .net technologies since 2001. Worked for a USA outsourcing firm and succesfully completed lot of projects on this time. Currently working for a valuable mine company at the e-commerce department.
On the other hand that given lessons, seminars and workshops on the Turkey.
Last, Built a community group about .net technologies named ".NET is here(www.dotnetishere.com)" and managing it.
Occupation: Web Developer
Location: Turkey Turkey

Other popular .NET Framework articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 25 of 100 (Total in Forum: 100) (Refresh)FirstPrevNext
Subject  Author Date 
GeneralCompletely bugged [modified]memberMember 35415628:48 18 Feb '08  
GeneralRe: Completely buggedmembermaamaa7:04 23 Apr '08  
GeneralRe: Completely buggedmemberMurat YILMAZ11:00 23 Apr '08  
GeneralRe: Completely buggedmembermaamaa11:50 23 Apr '08  
GeneralRe: Completely buggedmemberMurat YILMAZ11:02 23 Apr '08  
GeneralMYSQLmemberpabloar5:31 6 Jan '08  
Generalhow to use nHybernate helperkit in my applicationmemberkrishnaprema20:29 4 Nov '07  
GeneralRe: how to use nHybernate helperkit in my applicationmemberMurat YILMAZ11:04 23 Apr '08  
QuestionSql Server 2005 SchemasmemberMehmet Serdar2:21 23 Oct '07  
Questionhow to un install NHibernate Helper KitmemberNarjisMalik4:06 5 Oct '07  
QuestionOracleConnectionmemberSinan Taviloglu22:08 10 Aug '07  
GeneralRe: OracleConnectionmemberMurat YILMAZ11:04 23 Apr '08  
GeneralHow to log on the server using Windows authentication?memberMarcelo_Zilli5:59 7 Aug '07  
GeneralRe: How to log on the server using Windows authentication?memberMarcelo_Zilli16:12 7 Aug '07  
GeneralI can't find the menu.memberhpzhao15:05 19 Jul '07  
QuestionCustom Store Produresmembervgtav5:55 21 Jun '07  
GeneralHow to get it running with Vista?memberM.Vo.0:19 18 Jun '07  
GeneralThank youmembertcheepin21:12 24 May '07  
QuestionProblem installation nhibernateHelperKitmembermajdoulina_200:26 23 Apr '07  
QuestionRe: Problem installation nhibernateHelperKit [modified]membermajdoulina_200:56 23 Apr '07  
AnswerRe: Problem installation nhibernateHelperKitmemberzerdabi5:38 25 Apr '07  
AnswerRe: Problem installation nhibernateHelperKitmemberhpzhao15:07 19 Jul '07  
AnswerRe: Problem installation nhibernateHelperKitmemberkpatrickk22:36 17 Sep '07  
GeneralRe: Problem installation nhibernateHelperKitmembermahbouni4:47 23 Oct '07  
GeneralORM Mixed with Code GenerationmemberXin Zhao6:04 27 Mar '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:
Copyright 2006 by Murat YILMAZ
Everything else Copyright © CodeProject, 1999-2008
Web12 | Advertise on the Code Project