tags:

views:

763

answers:

2

I know that you can generate a database from classes and their mappings using nHibernate, but I can't find any good links to do this the other way around. We have a database that has already been designed, and we are looking at using nHibernate. It would be nice to use a tool to generate the mappings and classes from the database, and then we could tweak/manipulate them to suit our tastes.

A: 

You can use nhibernate with an existing database. It is a matter of writing the mapping files.

I also recommend using Fluent Nhibernate...I started using this after this community recommended it..

Look at subsonic as well if you do not like maintenance of mappings.

CodeToGlory
The post clearly states that he wants to avoid writing these mapping files.
Lars A. Brekken
I am recommending Fluent Nhibernate for that reason.
CodeToGlory
+3  A: 

You can do that by using the ActiveWriter.

It supports both vs 2005 and vs 2008.

Rodrigo Guerreiro
Awesome, that looks like just what we were looking for. Should save us some time in getting it off the ground.
Codezy
Unfortunately this aforementioned project is *dead*.
RyBolt