Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't write CLR type NodaTime.LocalDate with handler type DateHandler #94

Open
dbenjimanraj opened this issue Jun 21, 2021 · 4 comments
Assignees

Comments

@dbenjimanraj
Copy link

dbenjimanraj commented Jun 21, 2021

We are getting exception(Can't write CLR type NodaTime.LocalDate with handler type DateHandler) while doing BulkInsert
referring to the same approach in #78

@JonathanMagnan JonathanMagnan self-assigned this Jun 22, 2021
@JonathanMagnan
Copy link
Member

JonathanMagnan commented Jun 22, 2021

Hello @dbenjimanraj ,

Could you try to add all your Noda type using the method AddCustomSupportedType such as

DapperPlusManager.AddCustomSupportedType(typeof(NodaTime.LocalDate));

We currently support by default only NodaTime.LocalDateTime and NodaTime.ZonedDateTime, other type must currently be registered.

Let me know if that worked

Best Regards,

Jon

@JonathanMagnan
Copy link
Member

Hello @dbenjimanraj ,

Since our last conversation, we haven't heard from you!

Did you get the time to try the method AddCustomSupportedType ?

Let us know if that worked,

Best regards,

Jon

@dbenjimanraj
Copy link
Author

Hello Jon,
I've tried AddCustomSupportedType method it worked for me.
Thank you alot.

Best regards,
Ben

@JonathanMagnan
Copy link
Member

Awesome @dbenjimanraj !

We are glad to hear that the method works for you!

Don't hesitate to contact us with any questions, issues, or feedback.

Best regards,

Jon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants