Skip to content

Instantly share code, notes, and snippets.

@borisdj
Forked from jferguson/gist:1681888
Created August 27, 2013 09:29
Show Gist options
  • Save borisdj/6351497 to your computer and use it in GitHub Desktop.
Save borisdj/6351497 to your computer and use it in GitHub Desktop.
var imports = new List<Product>();
//Load up the imports
//Pass in cnx, tablename, and list of imports
BulkInsert(context.Database.Connection.ConnectionString, "Products", imports);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment