I'm looking for ways to generate the application database full structure based on the NHibernate mapping data. The idea is to give the user an option to supply a database-connection string and then to build their a database with the structure that the application needs.
The database need to independent - it means that it needs to work with any database that are supported by NHibernate.
By full structure I mean that I want to generate also the index fields, and the relationship between tables.
Is their few ways to accomplish this with NHibernate? Is so, what are they?