You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to add a migration when default configuraiton provider is used using CLI
dotnet ef migrations add Initial
Exception will be thrown: Value cannot be null.
Steps to reproduce
Create ASP.NET Core project that is using default configuration:
Try to add a migration when default configuraiton provider is used using CLI
dotnet ef migrations add Initial
Exception will be thrown: Value cannot be null.
Steps to reproduce
Create ASP.NET Core project that is using default configuration:
Try to run ef migrations add. This will throw the exception because it cannot find connection string.
Workaround:
Another workaround - mark appsettings.json to copy to output folder always.
Further technical details
EF Core version: 2.0 preview 2
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Windows 10
IDE: Visual Studio 2017
The text was updated successfully, but these errors were encountered: