We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If the model contains a DateTime field
class Entity { public DateTime DateLastModified { get;set; } }
If I apply a filter using queryable.Where("DateLastModified > '2018-07-17'") then with Ef Core 2.1 I am seeing that the query is translated to
queryable.Where("DateLastModified > '2018-07-17'")
where DateLastModified>'2018-07-17T00:00:00.0000000'
This leads to the sql query being failed.
It wasn't an issue with Ef Core 2.0 but I am seeing this issue with Ef Core 2.1.1
The text was updated successfully, but these errors were encountered:
Add EF2.1.1 example code (#183)
4580128
Hello @dixitsuneel.
I did test this with EF 2.1.1 with real database en with in-memory database, and in both cases all works.
Note that you need \" instead '.
\"
'
Example:
var carDateLastModified = context.Cars.Where(config, "DateLastModified > \"2018-01-16\"");
Sorry, something went wrong.
@dixitsuneel Closing this issue, if you still have problems, comment here of create a new issue.
StefH
No branches or pull requests
If the model contains a DateTime field
If I apply a filter using
queryable.Where("DateLastModified > '2018-07-17'")
then with Ef Core 2.1 I am seeing that the query is translated toThis leads to the sql query being failed.
It wasn't an issue with Ef Core 2.0 but I am seeing this issue with Ef Core 2.1.1
The text was updated successfully, but these errors were encountered: