Skip to content

Instantly share code, notes, and snippets.

@mattritchie
mattritchie / gist:90d6f5100ce38563ab0883ea66324dcf
Last active December 20, 2017 23:47 — forked from jferguson/gist:1681480
SqlBulkCopy Generic List<T>
public static class SqlBulkCopyForDapper
{
public static void BulkInsert<T>(this IDbConnection connection, IList<T> list)
{
var conn = connection as SqlConnection;
if (conn == null)
throw new Exception("conn is not SQLConnection");
if(conn.State != ConnectionState.Open)
@mattritchie
mattritchie / gist:1776748
Created February 9, 2012 02:35
BBCloneMail fork
//this is using your latest marionette version v0.4.3
BBAdmin.MailApp = (function(BBAdmin, Backbone){
var MailApp = {};
// Email Model And Collection
// --------------------------
MailApp.Group = Backbone.Model.extend({});