mikependon / RepoDB.NET

A hybrid ORM library for .NET.
MIT License
5 stars 8 forks source link

IPropertyHandler Set not triggered for BulkInsert operation #41

Open Trobeloo opened 2 years ago

Trobeloo commented 2 years ago

I have an entity with an enum property that is saved as a string in the database. Because the database string contains space and diacrtitics signs I have created an IPropertyHandler that maps between the string and the enum both for Set and Get. It works well if I read and write single records but if I use the BulkInsert function the correct string is not saved instead it is the enum part. Is it normal?

I am using RepoDb.SqlServer.BulkOperations 1.1.6-beta1 on Windows 11 VS 2022.

mikependon commented 2 years ago

Yes, this is not triggered on the Bulk Operations yet (both SQL Server and PostgreSQL). This is on our timeline.

Trobeloo commented 2 years ago

Ok good to know.