This question is locked. New answers and comments are not allowed.
We are importing XML data into our database & need to perform some referential integrity analysis on the data to be imported. To do so we need to make comparisons of Open Access entity navigation, key, and foreign key properties, but we are having a hard time identifying the properties using the context metadata. Specifically, we want to determine from the metadataContainer:
We can find 1, 2, and 3, but are stuck determining 4. It would seem that The MetaForeignKeyAssociation.MetaDataProperties.AssociationParts would give us item 4, but the ForeignKeyMember field is always null in all our tests.
Any ideas??
To clarify... we can find ForeignKey Members, but can't find a link between the ForeignKeyMember and the NavigationMember (so if there are two associations, as in two addresses, like shipping and billing, we can't determine which Foreign keys apply to each...) We are trying to deal with our entities generically at design time...
- The associations each entity is involved in
- The navigation properties on both ends
- the identity key properties for the entities on both ends
- the foreign key properties for the entities on both ends (for this association)
We can find 1, 2, and 3, but are stuck determining 4. It would seem that The MetaForeignKeyAssociation.MetaDataProperties.AssociationParts would give us item 4, but the ForeignKeyMember field is always null in all our tests.
Any ideas??
To clarify... we can find ForeignKey Members, but can't find a link between the ForeignKeyMember and the NavigationMember (so if there are two associations, as in two addresses, like shipping and billing, we can't determine which Foreign keys apply to each...) We are trying to deal with our entities generically at design time...