Bulk Insert in .NET applications, part 1

added by ruijarimba
3/25/2012 4:05:10 PM

1 Kicks, 115 Views

This is the first of a 2 series articles about how to perform bulk inserts in your .NET applications, using a SQL Server database. In this article I’ll show how to create a wrapper object for SqlBulkCopy that can do a bulk insert for a collection of objects. In the second article I’ll show how that wrapper can be easily integrated with Entity Framework (creating extension methods for DbContext and ObjectContext).