-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
CustomTypeHandler seems to doesn't work correctly #934
Comments
CC: @mgravell ? |
I have this issue too, seems it was fixed here, Which was added to the 1.50.5 release so it seems. But I can confirm that using 1.50.5 does not solve the issue. |
This is still an issue in 2.0.4 |
any updates? Having the same issue |
Same issue in |
Can anyone advice how to check and debug for this error? Would like to know if something happen, how to debug and fix it. THanks. |
How is this still an open bug after 4 years??? Is there any plan to fix this or is there at least a workaround? |
This SO answer may be relevant: |
In version 2.1.24 this still happens. I have a custom TypeHandler for Ulid and SetValue doesn't get called, thus throwing the exception:
Are there any plans to fix this soon? Could I help in any way? |
Don't be so rude and ask politely, after all this is an open-source free of charge library that Dapper devs do on their free time. If you want it fixed soon, the code is there to clone so go ahead and fix it yourself. And yes, there are workarounds, I'm also affected by this issue and I've found a quite simple workaround to implement in my code. |
Careful there now, if you fall off that high horse of yours you're bound to get hurt. |
A library doesn't do exactly what you want. That doesn't necessarily make it a bug; there are complex interactions that make this surprisingly subtle to implement without breaking other scenarios. Our highest priority is: not breaking existing usage. To quote from the license (apache):
You are free to use it as-is, but the maintainers (mostly: me) do not owe you a fix, an apology, an explanation, or promises. That's not how this works. Anything - including this reply - is above and beyond any SLA that we have, because: we don't have an SLA with you. Because of the complex interactions of this API and the lack of configurability (and the complexity of maintenance) in Dapper, a lot of active development is moving to Dapper.AOT - see #1909 for more context/reasons. This is currently usable but incomplete. I can state that a revised and replacement API - with better design - in Dapper.AOT is more likely than a fix here. You are also free to work on a fix that handles all scenarios, or fork and use a fix that handles just your scenarios. |
I have an entity like this:
and custom type like this:
custom handler like this:
and I
register
it in global.asax.cs like this:The problem is that
SetValue
is not invoked when Execute is called. I'm using a Dapper.FastCrud, and my code to insert an entity to db looks like this:Is there something more I have to do here?
The text was updated successfully, but these errors were encountered: