- Main Features
- Column Options
- Bulk Options
- Batch Operations
- Utilities
- Articles
- LINQ Dynamic
- Troubleshooting
- Release Notes
Entity Framework Extensions SqlBulkCopyOptions
Description
Gets or sets the SqlBulkCopyOptions to use when SqlBulkCopy is used to directly insert in the destination table.
context.BulkSaveChanges(options =>
{
options.SqlBulkCopyOptions = SqlBulkCopyOptions.Default | SqlBulkCopyOptions.TableLock;
});
Purpose
Modifying the SqlBulkCopyOptions to include for example TableLock may significantly increase performance.
Author: ZZZ Projects