tags:

views:

1421

answers:

3

What tool is there for generating C# classes from NHibernate mappings files?

+1  A: 

On the NHibernate resources page under 'Helpful tools', there are a few code generators listed: http://www.hibernate.org/365.html

Andy Whitfield
A: 

I wrote a small one : http://www.codeplex.com/EntityGenerator

Currently it's a small console application with a configuration file. Not very user friendly but it works and the templates are easily customizable.

Still under heavy development, I'll update it when I have some time :)

mathieu
+1  A: 

NConstruct Lite generate both mapping files and C# classes - all data is read from a database (MS SQL, Oracle, Access).

Thomas Tekavec