在asp.net 5 beta 7项目中,无论命令是如何编写的,我都会得到一个无法识别的参数,试图从现有数据库中构建dbcontext:
C:\Dev\Project>dnx ef dbcontext scaffold provider EntityFramework.SqlServer connection
"Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=ubercrew_relation;Integrated Security=True"
我已经尝试了两个参数connection和provider
的所有可能组合您是否知道执行scaffold命令的正确语法?
答案 0 :(得分:10)
正确的命令是:
C:\ Dev \ Project> dnx ef dbcontext scaffold" Data Source =(localdb)\ MSSQLLocalDB; Initial Catalog = ubercrew_relation; Integrated Security = True" EntityFramework.SqlServer
请务必通过nuGet
安装EntityFramework.SqlServer.Design软件包