问题
I am doing reverse engineering in my project. because our project we follows database first approach.
Through this command, i achieved reverse engineering but not with RevEng command.
dnx ef DbContext Scaffold "Server=databasename;Database=data;UserID=*;Password=*;" EntityFramework.MicrosoftSqlServer
I have tried many things but still unable to find RevEng command under the ef.
In a project, i am using
"commands": {
"web": "Microsoft.AspNet.Server.Kestrel",
"ef": "EntityFramework.Commands"
}
and
"dependencies": {
"EntityFramework.Commands": "7.0.0-rc1-final",
"EntityFramework.Core": "7.0.0-rc1-final",
"EntityFramework.MicrosoftSqlServer": "7.0.0-rc1-final",
"EntityFramework.MicrosoftSqlServer.Design": "7.0.0-rc1-final",
"EntityFramework.Relational.Design": "7.0.0-rc1-final",
}
So how can i enable RevEng command in dnx, Help me to out !
回答1:
Entity Framework RC1 is very incomplete. There is a ton of functionality missing. In its current state, it's almost unusable. Besides, on the next release dnx is going away. So probably many of the things you're figuring out now will change. Dnx will be replaced with a new library called net or something like that.
回答2:
The command reveng - which was short for "reverse engineering". But it was changed to dbcontext scaffold a while back. reveng no longer exists. I have got the solution of question. for more go with this link
https://github.com/aspnet/EntityFramework/issues/5194
来源:https://stackoverflow.com/questions/36896038/entity-framwork-7-0-0-rc1-final-reverse-engineer-from-existing-db-database-firs