I have two simple tables as described here...
Table = Person
PersonID (int, PrimaryKey)
FirstName (char)
LastName (char)
Table = Related
RelatedID (int, PrimaryKey)
Person1 (int, ForeignKey for Person.PersonID)
Person2 (int, ForeignKey for Person.PersonID)
Relationship (int)
The generated entity for Person has two navigation collections. One for the Related.Person1 and another for Related.Person2. This is a pain because it means I have two collections to investigate to look up all the relationships that are relevant to that person.
I need to have instead just a single navigation collections that contains both of these sets. Is it possible to have this generated as part of the entity frameowrk? The only alternative is to generate a third collection myself that contains the aggregate set of entities and it feels like that should not be needed.