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

Closed Issue: Wrong drop order in scaffolded Down() [480]

$
0
0
When generating migrations from code-first, Down() is always generated to first drop indexes, then foreign keys and then tables. This causes a problem with some rdbms which require an index on the foreign key column for the foreign key to operate. Therefore the drop order should be modified to drop foreign keys before dropping indexes.

Viewing all articles
Browse latest Browse all 10318

Trending Articles



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