C# – Database tables to C# entity classes – generator for FluentNHibernate

cnhibernate

I am planning to use NHibernate for my next project with mapping through FluentNHibernate.
I have a database already, so I have to generate C# classes for entities mapped to database tables.

What tool would you recommend (if there is any?) for automatic C# class generation for NH from MS SQL database?

Thanks for sharing.

Best Answer

NConstruct Lite will generate the classes and the hbm mapping files for free even though it does not support fluent NHibernate, nor does it make use of some of the new C# 3.0 features.