schotime / NPoco

Simple microORM that maps the results of a query onto a POCO object. Project based on Schotime's branch of PetaPoco
Apache License 2.0
848 stars 302 forks source link

BulkInsert doesn't serialize columns marked as serialized #619

Closed Rensvind closed 3 years ago

Rensvind commented 3 years ago

If this line https://github.com/schotime/NPoco/blob/master/src/NPoco.SqlServer/SqlBulkCopyHelper.cs#L82 is changed to var value = db.ProcessMapper(cols[i].Value, cols[i].Value.GetValue(item!)); everything works as expected

schotime commented 3 years ago

In NPoco.SqlServer 5.1.1