I'm using adapter, SqlServer, v2.6 latest.
I'm working at run time.
I have a IEntity2, let's call it x. From that I want to examine its related IEntity2s (if any).
To be clear, I don't have any data in x and don't want to see any actual data in the related IEntity2; I want to examine the field names on the related entities.
I can get x.GetAllRelations(); to get its IEnityRelations. From a IEntityRelation I don't see a way to get the related IEntity2? I see that I can get the field name that holds the entity or collection in x from the relation but I don't think that helps me.
Edit
I now have the related IEntity2s using
List<IEntityCollection2> collections = x.GetMemberEntityCollections();
foreach (IEntityCollection2 x in collections)
{
IEntity2 entity2 = entityCollection2.EntityFactoryToUse.Create();
}
I think my question becomes:
How do I match entity2 to the relations that have x at one end and entity2 at the other?