I\'m trying to learn how to use the Entity framework but I\'ve hit an issue I can\'t solve. What I\'m doing is that I\'m walking through a list of Movies that I have and ins
I had the similar issue with table relationship spanning three levels Like Customer->Order->Order-Details with oracle 12C Auto-ID Trigger for key generation. Insertion using SaveChanges()
was throwing System.InvalidOperationException
.
Solution: Augmenting function SaveChanges(System.Data.Objects.SaveOptions.None)
prevents system to use temporary EntityKeys
in state of object graph and in result exception is avoided.