asp.net core 2.0 - Value cannot be null. Parameter name: connectionString

后端 未结 22 1908
时光取名叫无心
时光取名叫无心 2020-12-13 10:00

I had the following error in package manager console when Add-Migration

Value cannot be null. Parameter name: connectionString

22条回答
  •  悲哀的现实
    2020-12-13 10:14

    If you have previously renamed your connection string in appsettings file and you have omitted to rename it in DesignTimeDbContextFactory class (if you have it in your project) and that is checked by Entity framework, then you may run in this issue.

提交回复
热议问题