Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
attrib75 opened this issue Jul 12, 2016 · 3 comments

Comments

@attrib75
Copy link

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

@timabell
Copy link
Owner

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.

@attrib75
Copy link
Author

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

@timabell
Copy link
Owner

timabell commented Aug 2, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants