I created a library based on .NET 4.6.2 version. To the library, I\'ve added the EntityFramework version 6.1.3 package. I created a model as follow
I also had 2 versions of EF installed and using "EntityFrameworkCore\Add-Migration [migrationname]" command to specify which version to use solved the issue.