zoukankan      html  css  js  c++  java
  • .net core EFCore CodeFirst 迁移出现错误【No project was found. Change the current working directory or use the --project option. 】

    PM> dotnet ef Migrations add Init No project was found. Change the current working directory or use the --project option.

     解决方法 定位到csproject 文件夹

    PM> dotnet ef migrations script --verbose -i --project "E:WebWebsiteWebsite.MVC"

     问题解决

    接下来正常进行CodeFirst操作:生成Migration [name] Upate Database

    PM> add-migration test
    PM> update-database

    来源:

    https://github.com/aspnet/EntityFramework.Docs/issues/737

     

    pass:我会经常修改 不希望被转载!

  • 相关阅读:
    【poj1655】Balancing Act
    yargs.js用法
    8、typescript
    7、typescript
    6、typescript
    5、typescript
    4、typescript
    3、typescript
    2、typescript
    1、typescript
  • 原文地址:https://www.cnblogs.com/WNpursue/p/10243642.html
Copyright © 2011-2022 走看看