Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonathanMagnan/9e0be36b8ce1307c626f7d6fc8de1925 to your computer and use it in GitHub Desktop.
Save JonathanMagnan/9e0be36b8ce1307c626f7d6fc8de1925 to your computer and use it in GitHub Desktop.
var ctx = new EntitiesContext();
// Easy to use
ctx.BulkDelete(list);
// Easy to customize
context.BulkDelete(customers,
bulk => bulk.ColumnPrimaryKeyExpression = customer => customer.Code; });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment