-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Add DateOnly.FromDateTime query mapping for SQL Server #31180
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ErikEJ, looks good thanks.
FYI test test doesn't require a DateOnly in the model, only a DateTime, so it could simply be added to e.g. NorthwindFunctions to avoid adding DateTime to GearsOfWar and changing all the baselines.
Note that it should be pretty easy to implement this for SQLite as well, with the date()
function (docs) - are you interested in doing that?
test/EFCore.SqlServer.FunctionalTests/Query/TPTGearsOfWarQuerySqlServerTest.cs
Outdated
Show resolved
Hide resolved
…SqlServerTest.cs Co-authored-by: Shay Rojansky <roji@roji.org>
@roji Should I move the test? |
I will leave the SQLite implementation to someone else 😄 |
I am moving the test |
@ErikEJ pushed a commit that implements for SQLite and asserts failure for Cosmos. |
Cool, thanks |
Thanks as always @ErikEJ! |
@roji Tag "community-contribution"? |
Added |
fixes #30708