Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
// DON'T add the key if auto-generated
ctx.BulkInsert(customers, operation => operation.ColumnInputExpression =
customer => new {customer.Name, customer.Email});
// ALWAYS add the key
ctx.BulkUpdate(customers, operation => operation.ColumnInputExpression =
customer => new { customer.ID, customer.Name, customer.Email });
// ALWAYS add the key
ctx.BulkMerge(customers, operation => operation.ColumnInputExpression =
customer => new {customer.ID, customer.Name, customer.Email});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment