I have two tables which need to be inserted when my application run. Let\'s say that I have tables as followed
Have you tried setting AutoDetectChangesEnabled = false in the Context.Configuration before all the inserts?