【问题标题】:Entity Framwork 7 reverse engineer from existing db "code first"从现有数据库“代码优先”的实体框架 7 逆向工程
【发布时间】:2015-11-26 19:58:14
【问题描述】:

不知道怎么在最新版的dnx中传递连接字符串参数...尝试

dnx ef dbcontext scaffold -connection='sql connection string' 

但它不识别 -connection 参数.. 你应该如何将参数传递给这个东西?

【问题讨论】:

    标签: dnx entity-framework-core


    【解决方案1】:

    你试过了吗:

    dnx ef dbcontext scaffold "sql connection string" EntityFramework.MicrosoftSqlServer
    

    【讨论】:

    • 在添加到我的 project.json 依赖项“EntityFramework.SqlServer.Design”:“7.0.0-*”之后可以正常工作,但是当我尝试使用 -o 指定和输出目录时,我得到“ System.Exception:TODO:错误:无法识别的选项“-o””
    • 我认为该选项将在 beta 8 中推出
    • 在 7.0.0-rc1-final 版本中,提供者是 'EntityFramework.MicrosoftSqlServer'。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-01-06
    • 1970-01-01
    • 2014-10-04
    相关资源
    最近更新 更多