How to insert a large number of records quickly using ADO.Net Entity Model?
I am using the ADO.Net Entity Model. Everytime I create a 开发者_C百科record, I am calling _entity.AddToTable(object); _entity.SaveChanges();
What is the fastest way of inserting the data? Is there any "batch" or "SqlBulkCopy" option for entity model?
Use transactions.
How to: Manage Transactions in the Entity Framework
精彩评论