当我尝试使用时update-database -verbose -force
,我收到错误:
ALTER TABLE DROP COLUMN failed because column 'countReferralsRegistrations' does not exist in table 'UserProfile'.
问题是 - 我在模型和表 UserProfile 中没有(而且我不想有)此列。
我该如何解决?
SOLUTION
首先使用:Add-Migration InitialMigrations -IgnoreChanges
进而update-database verbose
。这会起作用
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)