I just updated my project to ASP .NET Core 2.1 and when I run:
migrations add InitialCreate
It creates a migrations folder, but I get this error and my project won't build:
The name "SqlServerValueGenerationStrategy" does not exist in the current context.
SqlServerValueGenerationStrategy
is defined into Microsoft.EntityFrameworkCore.SqlServer.dll
in Microsoft.EntityFrameworkCore.Metadata
.
Make sure you installed the following Nuget package Microsoft.EntityFrameworkCore.SqlServer:
Install-Package Microsoft.EntityFrameworkCore.SqlServer
In the case of .NET Core CLI:
dotnet add package Microsoft.EntityFrameworkCore.SqlServer
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With