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

后端 未结 6 1167
佛祖请我去吃肉
佛祖请我去吃肉 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:15

    I just had the same exact issue, i know this thread is a year old but maybe it will help someone else.

    I was trying to create the database in entity 5 using the Package Manager Console using the connection string below.

    update-database -ConfigurationTypeName My.Project.EF.Migrations.Configuration -ConnectionStringName MyDatabaseDev -ProjectName Project.Name -StartUpProjectName Database.Name

    Each time i ran it i got the error below.

    Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

    To fix it i simply added the -force parameter and it went right through.

提交回复
热议问题