BulkSaveChanges inconsistent behavior when saving value that exceeds max field length

Description

BulkSaveChanges behaves inconsistently depending on the number of updated records. When I set a value that exceeds the field's size I expect BulkSaveChanges to fail. This is consistent with SaveChanges. However if I only change a few records the update succeeds and the values in the table are truncated. When I update many records (e.g. 1000) the update correctly fails. Please see this example.

Further technical details

  • EF version: 6.4.0
  • EF Extensions version: 4.0.69
  • Database Provider: SQL Server