Is NHibernate SchemaUpdate safe in production code?

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

    For this to be able to run in production code, the account that the production application uses to connect to your database would have to have permission to change the database schema.

    That alone should deter you from this approach, irrespective of the quality/reliability of the NHibernate code.

提交回复
热议问题