borisdj / EFCore.BulkExtensions

Entity Framework EF Core efcore Bulk Batch Extensions with BulkCopy in .Net for Insert Update Delete Read (CRUD), Truncate and SaveChanges operations on SQL Server, PostgreSQL, MySQL, SQLite

Home Page:https://codis.tech/efcorebulk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KeyNotFoundException thrown when calling BulkInsertOrUpdateAsync with UpdateByProperties referencing a ByteArray

fbole-feysot opened this issue · comments

( using 6.7.15 version)
our model has a uniqe key with type ByteArray
When calling BulkInsertOrUpdateAsync() with BulkConfig.UpdateByProperties containing the name of this unique key, it throws a KeyNotFoundException.

looks like the dictionary used by the lib, whose key is the ByteArray value, does not compare on byteArray content but on ByteArray address... So it consider that 2 arrays with identical values are not identical.