EF Code First - Timeout expired. The timeout period elapsed prior to completion

后端 未结 6 1291
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-06 23:34

Apology for this strangely worded question. I don\'t know what the actual problem is but hopefully someone can give me some insights.

I am getting the following error wh

6条回答
  •  我寻月下人不归
    2021-02-07 00:07

    For me, the problem was that that migration script took a long time to run (15 minutes).

    This is how I worked around the issue:
    1. Run update-database -script (-force may be necessary)
    2. Copy this SQL script output and run in SQL Server Management Studio

提交回复
热议问题