Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Commented Issue: Designer: Graphical/Layout issue on diagram after Redo operation [1345]

$
0
0
Steps:
1. Create new empty EDMX
2. "Update model from database" (I used Adventureworks 2012)
3. Undo the reverse-engineer operation. (back to empty model)
4. Redo the reverse-engineer.

At this point, it seems like it incorrectly handles the previous layout of the entities, causing them to appear kind of garbled.

__Screenshot attached.__
Comments: Fixed with commit #56022d4. The problem was that after Update Model, although things looked OK on the screen, in fact the designer's view model was out of sync with the underlying EDM diagram model. In the latter random values had been assigned to the X & Y coordinates expecting them later to be overwritten, but they weren't overwritten because no AutoLayout of the new entity types had taken place. When, later, undo/redo happened we make sure the view model is up-to-date with the model we read the random values put in earlier and lay out the diagram according to that (which leads to the layout issue described above). Fix was to make sure that AutoLayout happens on any new entity types.

Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>