I am facing out of memory exception while executing decontext.savechanges() method.
Actually i need to insert/update 10000+ record into some tables.
ie
//insert table 1 // 10000 record <br>
//insert or update record to table 2 //25000 record<br>
//table 3 1000 record<br>
....
.....
.....
db.context.savechanges(); //Exception happening in this line.
I got "Exception of type 'System.OutOfMemoryException' was thrown" error.
I tried AutoDetectChangesEnabled but its did not help
mydbcontext.Configuration.AutoDetectChangesEnabled = false;
mydbcontext.SaveChanges();