Error in migrations in EFCore

↘锁芯ラ 提交于 2019-12-24 09:29:28

问题


When I run Add-Migration using Microsoft.EntityFrameworkCore.Tools 1.1.1, I get the following error:

Add-Migration : Exception calling "Substring" with "1" argument(s): "StartIndex cannot be less than zero. Parameter name: startIndex" At line:1 char:1 + Add-Migration + ~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Add-Migration], MethodInvocationException + FullyQualifiedErrorId : ArgumentOutOfRangeException,Add-Migration

The same stuff works perfect with version 1.1.0-preview4-final


回答1:


This is issue #8163. You can safely ignore the error. It will be fixed in 2.0.0-preview2-final.



来源:https://stackoverflow.com/questions/44178411/error-in-migrations-in-efcore

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