Skip to content

Instantly share code, notes, and snippets.

@jferguson
Created January 26, 2012 09:12
Show Gist options
  • Save jferguson/1681888 to your computer and use it in GitHub Desktop.
Save jferguson/1681888 to your computer and use it in GitHub Desktop.

Revisions

  1. jferguson created this gist Jan 26, 2012.
    5 changes: 5 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    var imports = new List<Product>();
    //Load up the imports

    //Pass in cnx, tablename, and list of imports
    BulkInsert(context.Database.Connection.ConnectionString, "Products", imports);