Is NHibernate SchemaUpdate safe in production code?

前端 未结 4 2242
忘了有多久
忘了有多久 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:09

    You may want to consider that SchemaUpdate will always make additive and non-destructive changes, resulting in stale columns and nullable columns where they should be non-nullable.

    In other words, absolutely not for production use.

提交回复
热议问题