R – Export Fluent Nhibernate Schema and Alter Table

fluent-nhibernate

I am able to generate and export the schema creation script from Fluent Nhibernate.
Sometime I would like to just modify some fields or add new ones to a table after the schema creation without deleting all the tables.
What I do now is that I generate the first schema script and then manually add or modify the fields to the db during the development process.

  • It is possible to generate with Fluent Nhibernate Schema Export statements with ALTER TABLE instead CREATE TABLE?

Best Answer

Sure is possible

new SchemaUpdate(config).Execute(true, true);
Related Topic