You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to point two properties at a single column like this to be able to both access my field as an enum and with the raw underlying string value:
tc.Property(x => x.RawStatus)
.HasColumnName("STATUS");
tc.Property(x => x.StatusEnum)
.HasColumnName("STATUS")
.HasConversion<String>(
a => FromEnum(a),
b => ToEnum(b));
This appears to be supported by EF Core since it accepts this configuration and seems to work acceptably for existing entity.
But, if I then create a new entity with this configuration and call db.SaveChanges() I receive the following error:
Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. ---> Devart.Data.Oracle.OracleException: ORA-06550: line 4, column 188:
PL/SQL: ORA-00957: duplicate column name
ORA-06550: line 4, column 1:
PL/SQL: SQL Statement ignored
Is this not fully supported after all? Am I missing something? Or is it a EF Core or Devart bug?
I'm using EF Core v5.0.7 and devart v9.14.1273 on a Oracle database
The text was updated successfully, but these errors were encountered:
I want to point two properties at a single column like this to be able to both access my field as an enum and with the raw underlying string value:
This appears to be supported by EF Core since it accepts this configuration and seems to work acceptably for existing entity.
But, if I then create a new entity with this configuration and call db.SaveChanges() I receive the following error:
Is this not fully supported after all? Am I missing something? Or is it a EF Core or Devart bug?
I'm using EF Core v5.0.7 and devart v9.14.1273 on a Oracle database
The text was updated successfully, but these errors were encountered: