how How can I generate NHibernate mapping files and DB constructs from my domain logic?
I want to implement NHibernate on my domain objects in my project, but I’m not sure how I should go about generating the mapping file, and the database.
Is there any way to do this?
I’m perfectly fine with a multi-stage process, I just want to know what other people have done that was successful for them.
FYI, I want to deploy the database on SQL Server 2005.
About the mapping:
And that’s all you need.
You can build your database with schemaexport: