-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Translate DateTimeOffset.ToUnixTime[Seconds|Milliseconds] #28978
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
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.
See also SQLite test failures, you probably need to implement those tests and assert on them failing (unless there's a translation on SQLite as well).
src/EFCore.SqlServer/Query/Internal/SqlServerDateTimeMethodTranslator.cs
Outdated
Show resolved
Hide resolved
src/EFCore.SqlServer/Query/Internal/SqlServerDateTimeMethodTranslator.cs
Outdated
Show resolved
Hide resolved
|
Marked as |
src/EFCore.SqlServer/Query/Internal/SqlServerDateTimeMethodTranslator.cs
Outdated
Show resolved
Hide resolved
test/EFCore.Specification.Tests/Query/NorthwindFunctionsQueryTestBase.cs
Outdated
Show resolved
Hide resolved
test/EFCore.Sqlite.FunctionalTests/Query/NorthwindFunctionsQuerySqliteTest.cs
Outdated
Show resolved
Hide resolved
|
Cosmos has |
|
Converting to draft for now as we're not merging this for 7.0. |
test/EFCore.Sqlite.FunctionalTests/Query/NorthwindFunctionsQuerySqliteTest.cs
Outdated
Show resolved
Hide resolved
test/EFCore.Sqlite.FunctionalTests/Query/NorthwindFunctionsQuerySqliteTest.cs
Outdated
Show resolved
Hide resolved
src/EFCore.Sqlite.Core/Query/Internal/SqliteDateTimeAddTranslator.cs
Outdated
Show resolved
Hide resolved
src/EFCore.Sqlite.Core/Query/Internal/SqliteDateTimeAddTranslator.cs
Outdated
Show resolved
Hide resolved
|
Can I mark it "ready for review"? |
39d9a30 to
e1b3468
Compare
|
Rebased, removed SQLite translations, and propagated the type mapping from |
e1b3468 to
22d4490
Compare
22d4490 to
72ab932
Compare
Added translation for
DateTimeOffset.ToUnixTime[Seconds|Milliseconds]Fixes #28925
Could anyone help me improve the tests?
Thank you in advance