views:

24

answers:

1

I am using the ADO.Net Entity Model. Everytime I create a 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?

+1  A: 

Use transactions.

How to: Manage Transactions in the Entity Framework

griegs
I ended up just using SqlBulkCopy instead of the entity framework for this operation. But i'll give you the accepted answer since it is a faster way of doing it within the entity model.
esac