Is there way to get a tables relations and relevant fields for an entity without using model generated code?
For example I can get the foreign keys for an entity by looping through the entitybase.fields and looking for IsForeignKey but I cannot find the related table name for that key (in another thread is was suggested that SourceObjectName would be this, but for me it is the same as the ContainingObjectName)
Secondly can I figure out the like of M:M & M:1 tables that reference this entity? The only place I see this information is in the Model generated code called [Table]Relations but this does not implement and interface or inherit from a base class so I cannot generically instantiate and use it.
Any ideas or suggestions would be appreciated.