using(var context = newUnicornsContext()) { try { context.Configuration.AutoDetectChangesEnabled = false; // Make many calls in a loop foreach (varunicorn in myUnicorns) { context.Unicorns.Add(unicorn); } } finally { context.Configuration.AutoDetectChangesEnabled = true; } }