开发者

How to insert a large number of records quickly using ADO.Net Entity Model?

开发者 https://www.devze.com 2023-01-02 21:31 出处:网络
I am using the ADO.Net Entity Model. Everytime I create a 开发者_C百科record, I am calling _entity.AddToTable(object); _entity.SaveChanges();

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

0

精彩评论

暂无评论...
验证码 换一张
取 消