ef-enum-to-lookup icon indicating copy to clipboard operation
ef-enum-to-lookup copied to clipboard

The MERGE statement attempted to UPDATE or DELETE the same row more than once.

Open attrib75 opened this issue 8 years ago • 3 comments

I'm getting this when I call numToLookup.Apply(context); in my seed method

attrib75 avatar Jul 12 '16 18:07 attrib75

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.

timabell avatar Jul 14 '16 10:07 timabell

It happens during an EF update-database. In the seed method I'm calling var enumToLookup = new EnumToLookup();
enumToLookup.Apply(context);

attrib75 avatar Jul 22 '16 13:07 attrib75

Nothing wrong with what you've said there, must be something in your specific dbcontext or database, I'd be interest to know what.

timabell avatar Aug 02 '16 23:08 timabell