当我在任何基于 dotnetcore 的项目上使用 entitcore 运行 add-migration 时出现错误,但在针对完整的 dotnetframework 时,等效命令有效
添加迁移:使用“1”参数调用“AddFromFile”的异常:“'basePath'不能是空字符串(“”)
查看我的代码的快照。这是一个 dotnetcore 控制台应用程序。如果基于 dotnetframewok 4.6.1 创建项目,则同样有效
最佳答案
Add-Migration -Name "TestMigration" -Project BTrips.Domain
只需指定
-Name
参数
关于entity-framework-core - 添加迁移 : Exception calling "AddFromFile" with "1" argument(s): "' basePath' cannot be an empty string (""),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42823847/