You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there is a separation between built-in types and custom types that use ITypeHandler.
There seems to be a common theme of bugs/enhancements that all revolve around this separation.
I was thinking its worth investigating if the type handling could be unified, so that both the in-built types and custom type handlers use the same mechanism so that the code handling types can be simplified in to, look up type handler, check for an optimizer, otherwise just use the type handler.
This would need to introduce a new enhanced type handler that can optionally generate IL to convert the to/from the database value. This would then allow custom type handlers to also generate optimized IL to convert the value.
This shouldn't have any significant impact on query times as type handlers are only looked up once when generating the IL for the query.
Reacted by Aaron Brodersen, Kevin Kuszyk, Karl Waclawek, JC Berleur, Narve Sætre, Vincent DARON, Matt Davey and Shoaib Shakeel
I honestly don't know if I'm for or against this, I'll just note why we haven't dedicated much time to it: it's a potentially breaking change, so it'll have to wait for a 2.0 release.
That being said, we're all for someone doing the digging on options as hours are the most limited resource around here - it'd be much appreciated.
And that's bad. Already 2019, but the problem is not solved.
Does anyone understand why it is impossible to solve the problem with this pullrequest and by adding a flag like
Activity
vdaron commentedon Jan 6, 2016
+1
NickCraver commentedon Feb 1, 2016
I honestly don't know if I'm for or against this, I'll just note why we haven't dedicated much time to it: it's a potentially breaking change, so it'll have to wait for a 2.0 release.
That being said, we're all for someone doing the digging on options as hours are the most limited resource around here - it'd be much appreciated.
chilversc commentedon Sep 21, 2016
Another case this could help with is #213 as it would allow the user to replace the in-built handling for strings.
kwaclaw commentedon Sep 22, 2016
Would also help with #303, #319, #471, #607.
NickCraver commentedon Jan 28, 2017
Tagging for the v2 release.
vitidev commentedon Feb 24, 2019
And that's bad. Already 2019, but the problem is not solved.
Does anyone understand why it is impossible to solve the problem with this pullrequest and by adding a flag like
SqlMapper.OverrideHandlersForStandardTypes = true;so that the change is no longer breaking
and not wait Dapper 2.0 for many years