Just gonna put this out there because I have no idea why this is happening..... if you have any insights they would be welcome.
I have a entity collection:
Public Property SelectedQuestionGroupAssignments() As EvidenceQuestionGroupAssignmentCollection
...
when I go into the collection and set one of the related entities (the EvidenceQuestionGroupAssignment eqga.Evidence field), the EvidenceQuestionGroupAssignment eqga disappears from the collection.
Dim eqga As EvidenceQuestionGroupAssignmentEntity = Me.SelectedQuestionGroupAssignments(questionGroupListItem.DataItemIndex)
.....
eqga.Evidence = Me.Evidence
again, when I debug and step thru my code ( I'm iterating thru the collection) when I get to that last line, my collection count decreases by one and the eqga is gone from the collection....
so.... any ideas? I'm not sure why setting the field would cause the entity to be removed from the collection.....