ef-enum-to-lookup
ef-enum-to-lookup copied to clipboard
The MERGE statement attempted to UPDATE or DELETE the same row more than once.
I'm getting this when I call numToLookup.Apply(context); in my seed method
I have no idea how that could happen. Could you supply some steps to reproduce the problem please. Preferably in the form of an additional unit test for the project. Thanks.
It happens during an EF update-database. In the seed method I'm calling
var enumToLookup = new EnumToLookup();
enumToLookup.Apply(context);
Nothing wrong with what you've said there, must be something in your specific dbcontext or database, I'd be interest to know what.