Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Major issue with GUID/RAW(16) when upgrading from 19.12.0 to 21.3.0

Chris MylonasSep 23 2021

The issue in summary:
We have a table with a RAW(16) identifier. PARAMETERID     NOT NULL RAW(16 BYTE)
An EF Code-First app that maps this table to a Guid property.
An entity that maps to property/table. public Guid PARAMETERID { get; set; }
Its EF configuration.

        public HRHubParameterDBEntityConfiguration() {
           ToTable("PARAMETERS");
           HasKey(a => a.PARAMETERID);
           Property(a => a.PARAMETERID)
               .HasColumnName("PARAMETERID");
           Property(a => a.NAME)
               .HasColumnName("NAME");
       }

public DbSet<HRHubParameterDBEntity> Parameters { get; set; }

On actual Oracle DB we have the following value on its id
25B9118570E3EB4BB41E45ED70CECD81
and the following name TEST
When we read with ODP.NET 19.12.0 we get the following Guid value:
8511b925-e370-4beb-b41e-45ed70cecd81
When we read with ODP.NET 21.3.0 we get the following Guid value:
25b91185-70e3-eb4b-b41e-45ed70cecd81

As you see there is a reversal in the first three parts of the read value, the last two parts remain the same.
It seems there is a SERIOUS issue when reading RAW(16)/GUID values from database with the latest release.

Please advise.

Comments
Post Details
Added on Sep 23 2021
30 comments
2,987 views