Master Detail Relation. Get all Child Tables
Posted: Mon 31 Oct 2016 13:40
Hello,
when I establish a master-child relation I set the ParentRelation property of the child PgSqlDataTable.
Afaik there is no property that relates from the Parent to the Child. It is only set from the Child to the Parent.
Is there a way I can iterate through all Childs that were set for a Parent table?
E.g. 3 tables
table1 is parent table of table2 and table3.
Now I want to list all the childs like this:
ListChilds(PgSqlDataTable table)
{
}
should output: table2 and table3
when I establish a master-child relation I set the ParentRelation property of the child PgSqlDataTable.
Afaik there is no property that relates from the Parent to the Child. It is only set from the Child to the Parent.
Is there a way I can iterate through all Childs that were set for a Parent table?
E.g. 3 tables
table1 is parent table of table2 and table3.
Now I want to list all the childs like this:
ListChilds(PgSqlDataTable table)
{
}
should output: table2 and table3