views:

320

answers:

3

Is there any mapping tool for nhibernate-mysql? I want a mapping tool that

  1. Takes in a MySQL database
  2. General the relevant hbm.xml file
  3. Create the data access layer class that maps to each table.

Is there any such tools available?

+3  A: 

There is only one tool similar to what you describe which is called ActiveWriter which is a VStudio addon. It is useful but have some serious limitations. I would consider using NHibernate Fluent or ActiveRecords instead.

Ender
+2  A: 

This popped up on the NHibernate users group some time back. General feeling was that it's a bag of hurt generating hbm.xml from database. Better to write classes and XML files.

One guy suggested MyGeneration, which might be worth a look.

Tobin Harris
A: 

CodeSmith has such a tool available.

Ngu Soon Hui