2

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

RyanFetz
  • 525
  • 2
  • 8
  • 25

3 Answers3

1

On the NHibernate resources page under 'Helpful tools', there are a few code generators listed: http://nhibernate.info/doc/nh/en/index.html

Owen Pauling
  • 11,349
  • 20
  • 53
  • 64
Andy Whitfield
  • 2,373
  • 2
  • 19
  • 22
1

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

0

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
  • 30,974
  • 4
  • 64
  • 90