Is NHibernate SchemaUpdate safe in production code?

前端 未结 4 2246
忘了有多久
忘了有多久 2021-02-07 14:19

For simplicity\'s sake. I\'m using Fluent NHibernate\'s Automapping combined with NHibernate\'s SchemaUpdate during runtime. On each run Automapper creates mappings for all enti

4条回答
  •  情歌与酒
    2021-02-07 15:04

    I wouldn't risk it. What works well is to run it on a staging server that has been restored from production, then use a database comparison tool (such as Red Gate) to examine the changes and generate a script.

提交回复
热议问题