We have been trying to run EF Core Migration in .Net Standard 1.6 class library, but it has been failing. But same passes very well in .Net Core 1.1 class library.
I haven't tried with .Net Standard 1.6 but It does work for 2.0.
Microsoft.EntityFrameworkCore.Tools.DotNet
needs to be added to each of your class libraries that have a DbContext
in them. Right click the project and select Edit *.csproj
. Then, add the following:
You can see a more in-depth tutorial here: EF 7 Migrations with multiple DBContexts