Why does the DatabaseInitializer get called twice?

后端 未结 1 1386
独厮守ぢ
独厮守ぢ 2021-01-26 09:52

I’ve inherited an MVC that currently does some setup work with the ApplicationStart method so that when the application comes back to life with an IIS Application pool this setu

相关标签:
1条回答
  • 2021-01-26 10:52

    the ApplicationStart run every time the ApplicationPool starts, no matter what. You have to use another mechanism to populate your DB. Like Migrations.

    0 讨论(0)
提交回复
热议问题