-
Notifications
You must be signed in to change notification settings - Fork 127
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
Bug: No coercion operator is defined between types 'System.TimeSpan' and 'System.Int64'. #1033
Comments
I was a bit surprise by this issue as our Integration Tests are working. The only difference is just we are using DateTime to DateTime but the others (like this) are almost the same concepts. I can even replicate this issue (just now). We will fix this one for you as this is a bit critical to be honest. You will receive further updates from us in relation to this. Working: RepoDbPropertyHandler-CustomType-Working.zip |
#1033 - fixed the issue on the property handler for TimeSpan and Int/…
This has just been fixed and it will be available on the next release. Would you be able to let us know if you the fix immediately? Thanks |
Hi, thank you! I tried it with the current master. Now it works fine! Thanks!! I will wait till the next release for using 1.12.10. |
This is the only fix for that (fd973c3#diff-60f2ffa37fb8c5f1593dd214b314d6b037e40b4a1a3a681a4f1e591dbd1f5652R903), but we covered it by the Integration Tests. Alternatively, you use the newly release v1.12.10 but you have to make the property nullable. Model: Table: Property Handler: |
Thank you for this hint, but currently it's not absolutely necessary to use 1.12.10 😉 |
Hello Mike, |
I can issue a new beta for you later. I will update this ticket |
wow, this would be nice! Thank you! |
The latest alpha release has been pushed. Please install the package >= RepoDb v1.13.0-2 and its equivalent extension package. |
Please be informed of our delta changes. In this release, we have so many breaking changes. This is the reason why we are having delays on our releases. |
Hi, I updated from 1.12.9 to 1.12.10 (using C#). The following property-handler doesn't work. It works for reading, but not for writing (insert/update). (I mentioned it in #1021)
Exception: "Compiler.Entity/Object.Property: Failed to convert the value expression for property handler 'PropertyHandlerTimeSpan'. ClassProperty :: Name = TestFieldTimeSpan (System.TimeSpan), DeclaringType = TestClass
Inner Exception: "No coercion operator is defined between types 'System.TimeSpan' and 'System.Int64'."
The text was updated successfully, but these errors were encountered: