Overwrite Behaviour?
Posted: Mon 09 Sep 2013 07:23
Hello,
I do not want simply regenerate and overwrite existing mapping files for unchanged tables in my db.
I am using Update Model From DB option. (NHibernate as ORM tool and MS SQL as database)
The problem is that even i set the option OverwriteMode.None or OverwriteMode.Merge in the customized template file, each time I create a new table and choose the option Update Model From DB, existing mapping files (.hbm.xml) that are not modified in the DB are also regenerated??
Please suggest
I do not want simply regenerate and overwrite existing mapping files for unchanged tables in my db.
I am using Update Model From DB option. (NHibernate as ORM tool and MS SQL as database)
The problem is that even i set the option OverwriteMode.None or OverwriteMode.Merge in the customized template file, each time I create a new table and choose the option Update Model From DB, existing mapping files (.hbm.xml) that are not modified in the DB are also regenerated??
Please suggest