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

后端 未结 13 1334
陌清茗
陌清茗 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:25

    1.Change the Table structure and add a Primary Column. Update the Model.

    2.Modify the .EDMX file in XML Editor and try adding a New Column under tag for this specific table. (WILL NOT WORK)

    3.Instead of creating a new Primary Column to Exiting table, i will make a composite key by involving all the existing columns.(WORKED)

    Entity Framework: Adding DataTable with no Primary Key to Entity Model.

提交回复
热议问题