"Either the parameter @objname is ambiguous or the claimed @objtype (OBJECT) is wrong" 代码优先 Entity Framework

"Either the parameter @objname is ambiguous or the claimed @objtype (OBJECT) is wrong" In Code First Entity Framework

问题陈述:

我为 table 创建了一个 class 并将其命名为 'groupimages',成功添加了迁移,成功更新了数据库,但是 table 在 [=32] 之后没有显示在数据库中=]在 visual studio 中使用这些命令。然后我添加了新的 class 'groupimages2' 并做了同样的事情。 table 再次未显示在数据库中。我删除了两个 classes 并再次添加了新的 class 'groupimages3' 和 运行 命令 "add-migration abc",当我 [=32] 时它给出了 'there are some pending migrations..etc' 的错误=] 'update-database' 命令。它给出以下错误

Either the parameter @objname is ambiguous or the claimed @objtype (OBJECT) is wrong.

我无法解决我的问题。由于这个问题,我被卡住了。

我自己修好了。我更改了迁移 class 代码并删除了不需要的异常代码。 运行 迁移和更新的数据库。它已解决并且工作正常。