When I add-migration
i got this warning:
The EF Core tools version \'2.1.1-rtm-30846\' is older than that of the runtime \'2.1.4-rtm-31024\'. Up
If you are using a command line ( CMD, Powershell, bash etc ) you can easily type the following to update into the latest version:
dotnet tool update --global dotnet-ef
If you want to update into a very specific version do the following:
dotnet tool update --global dotnet-ef --version VERSION_NUMBER
Example:
dotnet tool update --global dotnet-ef --version 3.1.0
Update the tools using the package manager console:
Install-Package Microsoft.EntityFrameworkCore.Tools -Version 2.1.4
see this link https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.Tools/