-
Notifications
You must be signed in to change notification settings - Fork 494
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
LINQ: Fixes preserve DateTime.Kind when passing value to custom JsonConverter #3224
Conversation
Happy to add unit tests, but not sure where they should be put |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Linq/CosmosLinqJsonConverterTests.cs
Outdated
Show resolved
Hide resolved
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
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.
@khdang - Could you please review from the LINQ side?
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Linq/CosmosLinqJsonConverterTests.cs
Outdated
Show resolved
Hide resolved
Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Linq/CosmosLinqJsonConverterTests.cs
Show resolved
Hide resolved
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.
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
@ccurrens based on the test failure, can you run |
I did before. This looks like an issue because the timezone is different between my machine and the runner. Will probably need to exclude the timezone. |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
If all the tests pass, we'll merge this |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
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.
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.
Thanks for the quick and constant communication on this, and thanks for the merge! |
Description
This commit updates
ExpressionToSql.ApplyCustomConverter
to preserve theDateTimeKind
when parsing aDateTime
that is passed to a customJsonConverter
.Type of change
Closing issues
closes #3222