1

HI I have one table used in this code, C#. I added 2 columns to the table and now want to update the model. I right click to open the EDMX file, I put the cursor in the blue diagram, right click to update model from database, I choose refresh and select the only table that is offered, which is correct. Then finish.

Yet it brings onto the display in addition like 50 + tables from this database and have to manually delete with 2 passes. Why is this happening?

I have more adding coming up soon as well.

user3167167
  • 93
  • 2
  • 9
  • what version of entity framework is this? From my "Refresh" view, there is no options to select entities to update, it just updates all of the entities that are already in your model. – Kritner Dec 24 '15 at 19:15
  • I noticed now in the diagram file it has all the tables of the database, is this a problem? – user3167167 Dec 24 '15 at 19:46
  • Have you seen this post: http://stackoverflow.com/questions/16985552/how-to-update-only-one-table-for-model-from-database-with-entity-framework – David Tansey Dec 24 '15 at 19:52
  • I see. But is it safe to keep all the tables like that in my code? in the EDMX.diagram like this – user3167167 Dec 24 '15 at 19:58

0 Answers0