当我为模型添加新字段后,列名称无效

时间:2019-05-03 08:26:42

标签: c# asp.net-core core

当我向模型(Memy)添加新字段时,出现错误:

WindowA

我的模特Memy:

我尝试了一些尝试,但没有帮助:

我先添加了一个迁移,然后又更新了数据库,但这没有用,我不知道自己在做什么错?

WindowB

模型memyContext

An unhandled exception occurred while processing the request.
SqlException: Invalid column name 'kategoria'.
Invalid column name 'opis'.
Invalid column name 'title'.
Invalid column name 'img'.
Invalid column name 'modifyDate'.
Invalid column name 'relaseDate'

0 个答案:

没有答案