Hello,
I am working on a school project - addin to EA to manage Oracle database. I need to know, which columns(and related tables) exist in contraint.
Example:
table CONTAINERS (PK CONTAINER_ID, FK ITEM_ID)
table ITEM_MASTER (PK ITEM_ID)
Now when user makes some changes on table CONTAINERS, column ITEM_ID which is a FK, I need to tell him that this key is from table ITEM_MASTER on column ITEM_ID;
I know how to find tables which I have foreign keys in using SQL, but it's only tables:
"SELECT end_object_id FROM t_connector WHERE (LCASE(connector_type) = 'association' AND start_object_id = " + tableId.ToString() + ") ORDER BY end_object_id"
I thought that this constraint might be in Attribute Constraints, but I get zero from this:
repository1.GetAttributeByID(25).Constraints.Count //table CONTAINERS (ID 16), column ITEM_ID (ID 25)
Maybe it's all wrong, but the information I need can be found in GUI here:
Open table CONTAINERS in project browser, find FK ITEM_ID, right click> "operation properties"> Column> here is the list of Involved columns - ITEM_ID, which is what I need + I need to know from which table this column originates.
I searched entire eap database and found nothing.
Please help.