Hi all,
I'm trying to access relationship information via the Relations object on an entity.
However, properties such as AliasFKSide, AliasPKSide, or AliasStartEntity are not populated. Just curious why this wouldn't be populated. It seems like the information is available in the Project file.
At the moment I've gotten to the information via an Xpath query against the project's xml.
The xpath is something like this:
/Project/EntityModel/Relationships/NormalRelationship[@Start=':{0}']/FieldRelationships/FieldFieldRelationship[@FkField='{1}']
I found this thread: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=5394 but I'm hoping to avoid modifying or including templates
Is there an easier way to get the names/fields of related entities?
Also, is there a way to determine if an entity is mapped to view vs a table at runtime? It looks like that information could also be queried from the project file if necessary.
Thanks for any info.
(I'm using the latest build of v3.0, SelfServicing)