Where can I find examples of constructing EntityRelation in code?
I am dealing with a legacy datamodel (200 tables, 8 years old) that used natural keys and people have added new keys without updating the primary key due to the cascading effect of the natural keys in other tables.
We are in the process of fixing these key errors, but I was hoping to find a way to create relations based on these new keys until we finish refactoring the datamodel.