Ways to generate database full structure based on Fluent NHibernate mappings

Posted by Mendy on Stack Overflow See other posts from Stack Overflow or by Mendy
Published on 2010-04-08T03:25:40Z Indexed on 2010/04/08 3:53 UTC
Read the original article Hit count: 407

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?

© Stack Overflow or respective owner

Related posts about nhibernate

Related posts about fluent-nhibernate