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
I am unable to use the documented constructor syntax when the type being constructed has the same name as a property on the queried type. See fiddle. For example - .Where("it.DateTime > DateTime(2022, 1, 1, 0, 0, 0)")
This worked in versions at or prior to 1.0.22. It was broken in 1.0.23, presumably by #357. It continues to be broken in 1.2.24.
@ascott18
The only way to solve this is to introduce a new config setting, which will have value false = old behavior. And set this to true when you want the new behavior (priority property over the type)
@ascott18
This new config setting causes some backward compatibility issues some some users, so I'll probably need to change the default behavior back to version 1.2.24
So when a new version is released, 1.3.x, you 'll need to use the config setting correctly.
1. Description
I am unable to use the documented constructor syntax when the type being constructed has the same name as a property on the queried type. See fiddle. For example -
.Where("it.DateTime > DateTime(2022, 1, 1, 0, 0, 0)")
This worked in versions at or prior to 1.0.22. It was broken in 1.0.23, presumably by #357. It continues to be broken in 1.2.24.
2. Exception
3. Fiddle or Project
https://dotnetfiddle.net/6j1G9U
4. Any further technical details
The text was updated successfully, but these errors were encountered: