On an earlier post, I read about setting:
yourContext.Configuration.AutoDetectChangesEnabled = false;
yourContext.Configuration.ValidateOnSaveEnabled = false;
To improve bulk insert performance. I am using Entity Framework 5.0, but can not find the yourContext.Configuration object. When I select my context, I only see ContextOptions, but not Configuration. Am I missing something?
I was using EF Core and found AutoDetectChangesEnabled under ChangeTracker:
context.ChangeTracker.AutoDetectChangesEnabled = false
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With