Skip to main content
Email Password   helpLost your password?

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:

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

You must Sign In to use this message board.
 
 
Per page   
 FirstPrevNext
GeneralGreat Tool:: A sugestion to make it current Pin
Maruf Maniruzzaman
8:23 19 Apr '09  
GeneralVS2008 Pin
Ahmed Emad Ahmed
2:24 2 Apr '09  
AnswerHow To installing this helper [modified] Pin
sognant
13:26 3 Dec '08  
GeneralNh-Studio Pin
Alexey Lizunov
17:55 12 Jul '08  
GeneralCompletely bugged [modified] Pin
Member 3541562
8:48 18 Feb '08  
GeneralRe: Completely bugged Pin
maamaa
7:04 23 Apr '08  
GeneralRe: Completely bugged Pin
Murat YILMAZ
11:00 23 Apr '08  
GeneralRe: Completely bugged Pin
maamaa
11:50 23 Apr '08  
GeneralRe: Completely bugged Pin
Murat YILMAZ
11:02 23 Apr '08  
QuestionRe: Completely bugged Pin
clumox
6:19 27 May '08  
AnswerRe: Completely bugged Pin
Murat YILMAZ
21:05 27 May '08  
QuestionRe: Completely bugged [modified] Pin
Member 1518734
2:12 13 Nov '08  
GeneralMYSQL Pin
pabloar
5:31 6 Jan '08  
Generalhow to use nHybernate helperkit in my application Pin
krishnaprema
20:29 4 Nov '07  
GeneralRe: how to use nHybernate helperkit in my application Pin
Murat YILMAZ
11:04 23 Apr '08  
QuestionSql Server 2005 Schemas Pin
Mehmet Serdar
2:21 23 Oct '07  
Questionhow to un install NHibernate Helper Kit Pin
NarjisMalik
4:06 5 Oct '07  
QuestionOracleConnection Pin
Sinan Taviloglu
22:08 10 Aug '07  
GeneralRe: OracleConnection Pin
Murat YILMAZ
11:04 23 Apr '08  
GeneralHow to log on the server using Windows authentication? Pin
Marcelo_Zilli
5:59 7 Aug '07  
GeneralRe: How to log on the server using Windows authentication? Pin
Marcelo_Zilli
16:12 7 Aug '07  
GeneralI can't find the menu. Pin
hpzhao
15:05 19 Jul '07  
QuestionCustom Store Produres Pin
vgtav
5:55 21 Jun '07  
GeneralHow to get it running with Vista? Pin
M.Vo.
0:19 18 Jun '07  
GeneralThank you Pin
tcheepin
21:12 24 May '07  


Last Updated 19 Aug 2006 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2009