-
Notifications
You must be signed in to change notification settings - Fork 18
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
Queries using (DateTime).Date fail to translate #25
Comments
This is fixed in the |
Wonderful, thank you! |
@StevenRasmussen |
I just published v5.0.3 and v3.1.2 that contains the fix. |
Thank you : ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Thanks a lot for your work on this library.
We are in the process of migrating an existing DbContext where DateTime is still used, and noticed that a specific existing query on an entity that has no NodaTime types fails to translate if the context is configured with NodaTime support, otherwise it translates fine.
It seems the issue is related to the use of
DateTime
'sDate
property in the LINQ expression.Here is a simple repro: https://github.com/fordisonharry/EFCore.SqlServer.NodaTime/commit/849667bf4a388cad6f6a34c80138245b4d53ac43
It repros on the .net 6 branch as well.
I will have some more time next weekend to look into it, if it's not immediately obvious to you what the issue is.
Thanks again for the library.
The text was updated successfully, but these errors were encountered: