-
Notifications
You must be signed in to change notification settings - Fork 190
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
Issue with Timestamp mapping to DateTimeOffset EF Core #369
Comments
I may have identified the issue. I decompiled the Oracle.ManagedDataAccess DLL and looked at the The main thing to notice is the expected column type to be If you look at the documentation for Oracle Built-in Data Types, you will see that TIMESTAMP WITH LOCAL TIME ZONE is type 231 ( I would consider this a bug on the
|
@DuelingCats Thanks for reporting the issue. I was able to reproduce the problem. I filed bug 36417827 to have an Oracle EF Core team member investigate and fix the issue. |
@DuelingCats I talked with the Oracle EF Core dev team and they clarified what the problem is. We do have a doc bug that indicates the This doc correction has been made and will be appear in future doc versions. If I now modify all the test case code to use
|
I am testing time and date code and encountered an issue when trying to fetch
TIMESTAMP WITH LOCAL TIMEZONE
oracle column type toDateTimeOffset
CLR type. I am working with a database first approach and according to the Oracle documentation, theTIMESTAMP WITH LOCAL TIMEZONE
should be mapping toDateTimeOffset
. When testing inserting data, it works as expected.When fetching data at
context.TimeTesting.ToList()
below, I get anInvalidCastException
that looks to be a problem with howDateTimeOffset
is fetched. This is using Oracle.EntityFrameworkCore version 7.21.13 package. This might also be related to issue #193Sample Code:
The text was updated successfully, but these errors were encountered: