Closed b0rv3g4r4 closed 2 weeks ago
Based on the context provided, it seems like there is a mismatch between the property name expected in the SerializedKeyValuePair
entity and the one being used in the SetupOracle
method of the RuntimeDbContext
. The error message indicates that the property 'Value' does not exist on the 'SerializedKeyValuePair' type, and you are expecting a property named 'SerializedValue'.
To resolve this issue, you should ensure that the property name used in the SetupOracle
method matches the actual property name defined in the SerializedKeyValuePair
entity. If the correct property name is 'SerializedValue', then the code snippet should be updated to reflect that:
modelBuilder.Entity<SerializedKeyValuePair>().Property("SerializedValue").HasColumnType("NCLOB");
This change should be made in the RuntimeElsaDbContext.SetupForOracle
method where the entity type is being configured for Oracle.
If you have access to the source code of the SerializedKeyValuePair
entity, you should verify the correct property name. If 'SerializedValue' is indeed the correct property, then the above change should fix the issue. If the property name is different, you should use the actual property name in the SetupOracle
method.
Please make sure to apply this change and regenerate the migrations for Oracle to see if the issue is resolved.
This comment was generated by Glime.
Merged
Description
In the SetupOracle of RuntimeDbContext, the SerializedKeyValuePair is bad defined
Steps to Reproduce
To help us identify the issue more quickly, please follow these guidelines:
Detailed Steps: We are upgrading to 3.1.2 using a Oracle provider for Elsa and when we generate the migrations for Oracle we found in the Runtime module a problem with SerializedKeyValuePair
Code Snippets:
modelBuilder.Entity<SerializedKeyValuePair>().Property("Value").HasColumnType("NCLOB");
Attachments:
Reproduction Rate:
Video/Screenshots:
Additional Configuration:
Expected Behavior
The context defines a property "SerializedValue" for SerializedKeyValuePair
Actual Behavior
The context defines a property "Value" for SerializedKeyValuePair
Screenshots
Environment
Log Output