2016-05-23 4 views

Antwort

1

Ich denke, Ihr Problem ist, dass Sie ein class library Projekt verwenden. In RC2 von EF Core können Sie Ihren DBContext nicht in ein solches Projekt einfügen. Dies ist ein bekanntes Problem. Wenn Sie es in ein 'App'-Projekt konvertieren, sollte es wieder funktionieren.

Mehr Infos & Quelle:

Umgehung: https://docs.efproject.net/en/latest/cli/dotnet.html#dotnet-cli-issues

Github Ausgabe: https://github.com/aspnet/EntityFramework/issues/5460

Hilfreiche Link von RC1 zu RC2 Upgrade: https://docs.efproject.net/en/latest/miscellaneous/rc1-rc2-upgrade.html