¡@

Home 

c# Programming Glossary: commitcount

Fastest Way of Inserting in Entity Framework

http://stackoverflow.com/questions/5940225/fastest-way-of-inserting-in-entity-framework

MyDbContext context Entity entity int count int commitCount bool recreateContext context.Set Entity .Add entity if count.. recreateContext context.Set Entity .Add entity if count commitCount 0 context.SaveChanges if recreateContext context.Dispose .. time. Here are a few measurements for my 560.000 entities commitCount 1 recreateContext false many hours That's your current procedure..