Entity Framwork 7.0.0-rc1-final reverse engineer from existing db “Database first”

你说的曾经没有我的故事 提交于 2019-12-08 07:00:20

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!