I am using ASP.NET 5 Beta 8 with Entity Framework 7 Beta 8
I created a new class library package.
I performed the following installation package requests:
Install-Package EntityFramework.SqlServer -Pre Install-Package EntityFramework.Commands -Pre Install-Package Microsoft.AspNet.Identity.EntityFramework -Pre
My project.json
{ "version": "1.0.0-*", "description": "MARS Class Library", "authors": [ "myname" ], "tags": [ "" ], "projectUrl": "", "licenseUrl": "", "frameworks": { "dnx451": { } }, "dependencies": { "EntityFramework.Commands": "7.0.0-beta8", "EntityFramework.SqlServer": "7.0.0-beta8", "Microsoft.AspNet.Identity.EntityFramework": "3.0.0-beta8", } }
In the package manager console, I go to the src\project directory where project.json is located and runs any dnx ef command, for example:
dnx ef migrations --help
or
dnx ef migrations add InitialMigration
However, I get the following error:
dnx: Error: Cannot load the application or execute the 'ef' command.
In line: 1 char: 1
I have class classes and DBContext class classes, but the error seems to be due to the fact that the ef keyword cannot be understood at all.
What am I missing?
asp.net-core entity-framework-core dnx
greay
source share