RepoDB icon indicating copy to clipboard operation
RepoDB copied to clipboard

Bug: BulkInsert doesn't use PropertyHandler

Open Garios opened this issue 3 years ago • 5 comments

Bug Description

I wrote a PropertyHandler to convert TimeSpan-(Ticks) to (db-)bigint.

On InsertAsync() PropertyHandlers works fine. On BulkInsertAsync() PropertyHandlers aren't used.

FluentMapper.Entity<TABLE>().PropertyHandler<PropertyHandlerTimeSpan>(p => p.Duration);

Example: RepoDb v1.12.9 (also 1.12.10-beta4) and RepoDb.SqlServer v1.1.4 (1.1.5-beta3) and SqlServer.BulkOperations 1.1.5 (also 1.1.6-beta1)

Garios avatar Dec 13 '21 14:12 Garios

Somebody place this issue on our RepoDB.NET site. Referencing: https://github.com/mikependon/RepoDB.NET/issues/41

mikependon avatar Dec 13 '21 15:12 mikependon

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

mikependon avatar Dec 13 '21 15:12 mikependon

oh, I didn't realized that there is another repo. Thank you!

Garios avatar Dec 13 '21 15:12 Garios

This is the right place, the other repo is for the documentation site.

mikependon avatar Dec 13 '21 15:12 mikependon

Would be great to have this enhancement. I ran into it a few moments ago.

mikejpappas avatar Apr 06 '22 17:04 mikejpappas