I\'m a bit stumped. From what I\'ve read setting the DbContext.AutoDetectChangesEnabled to false should disable change tracking requiring one to ca
according to Entity Framework Automatic Detect Changes's Article
they said:
you may get significant performance improvements by turning it off in
some cases
look at this example from that article
using (var context = new BloggingContext())
{
try
{
context.Configuration.AutoDetectChangesEnabled = false;
// Make many calls in a loop
foreach (var blog in aLotOfBlogs)
{
context.Blogs.Add(blog);
}
}
finally
{
context.Configuration.AutoDetectChangesEnabled = true;
}
}
This code avoids unnecessary calls to DetectChanges that would have occurred while calling the DbSet.Add and SaveChanges methods.