Graviton
Graviton

Reputation: 83326

Nhibernate mapping tool for MySQL

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?

Upvotes: 1

Views: 721

Answers (3)

Graviton
Graviton

Reputation: 83326

CodeSmith has such a tool available.

Upvotes: 0

tobinharris
tobinharris

Reputation: 2559

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.

Upvotes: 2

Ender
Ender

Reputation: 213

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.

Upvotes: 3

Related Questions