Using ES2008, is there a way to extend this method in the custom classes? I am looking to add a few more collections that are not enforced directly with foreign keys.
To illustrate, my ScheduledTasks table has two fields used to identify the type (EntityType) and the identifier (EntityID) of the entity the scheduled task relates to (User, Contact, Company etc.). Since EntityType can vary, there is no FK relationship on EntityID, although there are constraints that ensure the entity exists based on the EntityType.
What I'd like to do is add collections to the hierarchical properties for a given entity, like "ScheduledTasksByContactID" for example. I've been able to accomplish this by either (a) editing the generated class' GetHierarchicalProperties() or (b) moving GetHierarchicalProperties() to the custom class. Neither of these bodes well for regenerating code though so I am wondering if there is a better way to accomplish this. Maybe something akin to what we do for GetLocalBindingProperties()?
Thanks in advance!
Cheers,
-Sean