Last post Sep 29, 2016 02:58 AM by Cathy Zou
Sep 28, 2016 11:33 PM|Gleeming|LINK
I am using the entity framework for my DB model. In my designer view I accidentally deleted one of the images that represent a table in the database. I did an update from
database, however it does not add back the table image of the table I accidentally deleted. So how can I add the table back into my edmx designer view?
The delet is a feature, where I believe you can just right click and delete. However I dont know how to add it back. Does anyone know how to do that?
Sep 29, 2016 02:58 AM|Cathy Zou|LINK
From your description, I create an Entity Data Model generated from an existing database. Then I delete an entity from edmx designer view. Next, I re-add the entity table in designer view by following the steps below:
opening the edmx file -> update model from database> the table will appear in the 'Add' tab in the first step of the 'Update Wizard'. select the table you deleted.> click ok
It works well in my application, the table be re-added to the designer view.
So, I suggest you could try to rebuild you application after deleting the table. Then, try to following the steps above to re-add you table.
Besides, If you still couldn’t solve your problem, I think that the links below may be useful for you.
Hope this can help you. If you have any question and confusion about the problem. Please don't hesitate to let me know.