How do i find an entity in a Entitycollection based on the PrimaryKey (PK)
This will work - but is it the preferred way to do it ?
Dim FunctionGrp As FunctionGrpEntity
Dim fg As New FunctionGrpEntity(MyPK)
Dim fgindex As Integer = FunctionGrpElements.IndexOf(fg)
If fgindex > -1 Then
objFunctionGrp = _department.FunctionGrpElements(fgindex)
Else
'Not available
End If
... IT