I have been struggling with writing code for recreation of Relationship class in C# but I cannot swim out 😞
I need to recreate Relationship Class in FGDB using .NET in order to change following properties of the Relationship Class:
- Name of the relationship class
- Origin Primary Key
- Origin Foreign Key
I imagine some kind or process would be:
- Pickup existing relationship class definition using source and target table names (I tried with RelationshipClassDefinition)
- Change above mentioned properties (this is where I couldn’t move forward with RelationshipClassDefinition)
- Drop existing Relationship Class
- Create new relationship class with new parameters
I see that in Pro 3.1 there is RelationshipClassDescription Class with which I could easily solve the probelm, but unfortunately I need to implement this task in Pro 2.9.6.
Thanks in advance for any suggestion.