-
Notifications
You must be signed in to change notification settings - Fork 86
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
Allow NULL value in MapValue() #111
Comments
Hello @VictorioBerra , Thank you for reporting, we will look at it. I will assign it to my developer to better understand why the Best Regards, Jon |
Hello @VictorioBerra , The v4.0.26 has been released. Let me know if we fixed correctly the issue when the value is Best Regards, Jon |
Thanks for the quick turnaround, I appear to have the same issue:
It works if I go back to only applying the MapValue when its not null. Just to clarify a few things, I am using a |
Hello @VictorioBerra , Thank you for reporting. I will ask my developer to try with your column type. We sure indeed fixed something with the null value but perharp that was different of your issue. |
Hello @VictorioBerra , My developer tried unsuccessfully to reproduce the issue with the latest version You can check his test online here: https://dotnetfiddle.net/Tzxgaa Do you think you could create a runnable project with the issue? It doesn’t need to be your project, just a new solution with the minimum code to reproduce the issue. You can send it in private here: info@zzzprojects.com Best Regards, Jon |
@JonathanMagnan Visual Studio did not correctly bump Z.Dapper.Plus to the fixed version, I re-tested and everything seems to be working great! I will close this. Thank you for the fix. |
I have a process that may or may not send a value:
If maybeElectricMotorType is null, this will fail with an error from the mapper.
An alternative is to save a reference to
DapperPlusEntityTypeMapper
:But I think this could be simpler by allowing nulls, or ignoring the MapValue if the value is null.
The text was updated successfully, but these errors were encountered: