Re: EF6 - Error inserting 2 related objects in a single SaveChanges
Posted by: Samuel Sippe
Date: March 09, 2014 07:17PM

Thanks Fernando. I'll try to get your code running locally. It's good to know that the Unit Of Work pattern works.

There could be some other factors that are causing the bug on my side. e.g. we do some manipulation of the model to cater for our column table naming standards similar to the manner described here http://romiller.com/2012/03/26/dynamically-building-a-model-with-code-first/. This was necessary in EF5 but I suspect not in EF6. I'll try to get it working with the EF6 approach and hopefully that will eliminate our issue.

I'll post back when I get a chance to do the work.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.