Handling enum changes in Entity Framework 5
问题 In this question, I discovered that enum changes are not handled by Entity Framework migrations. In fact, enum changes don't even result in a model changed error, so you can change enums at will with no controls. Enum changes that result in different int values, such as order changes or removals, can effectively render the database data invalid, since the meaning of the stored integer is now wrong. In order for Migrations to work, you have to manually execute custom SQL that changes the