ADO.NET Entity Framework: Update Wizard will not add tables

后端 未结 13 1430
陌清茗
陌清茗 2020-12-13 11:55

I added a new ADO.Net Entity Data Model into my project and used the Update Wizard to add tables into the model. Five of the selected tables were added to the design surfac

13条回答
  •  清歌不尽
    2020-12-13 12:17

    You do not need to delete the entire model (that might be hundreds of tables!).

    The Wizard can handle "adding new" items, but some changes such as changing composite keys and renaming columns - it doesn't know what to do - so it doesn't try - and things get out of sync.

    SO: DELETE the tables in question from the Model (conceptual mode) AND from the Model.Store, and then Update the model using the Wizard, and re-add just the tables in question.

提交回复
热议问题