当我向模型(Memy)添加新字段时,出现错误:
WindowA
我的模特Memy:
我尝试了一些尝试,但没有帮助:
https://dzone.com/articles/steps-to-add-new-field-with-code-first-approach-in
System.Data.SqlClient.SqlException: Invalid column name 'phone_types_phone_type_id'
我先添加了一个迁移,然后又更新了数据库,但这没有用,我不知道自己在做什么错?
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'