Hi,
I'm having some issues related to the setting of a property of a related entity.
When I do the folowing:
Dim obj As New Ec001Entity("UNiQUEiD")
Using adapter As New DataAccessAdapter
adapter.FetchEntity(obj)
adapter.FetchEntityCollection(obj.Ec002, obj.GetRelationInfoEc002)
End Using
MsgBox(obj.Ec002(0).Ordnr)
obj.Ec002(0).Ordnr = "ABC123"
MsgBox(obj.Ec002(0).Ordnr)
The messagebox return 2 times "UNiQUEiD".
When I do:
Dim obj As New Ec001Entity("UNiQUEiD")
Using adapter As New DataAccessAdapter
adapter.FetchEntity(obj)
adapter.FetchEntityCollection(obj.Ec002, obj.GetRelationInfoEc002)
End Using
MsgBox(obj.Ec002(0).Ordnr)
obj.Ec002(0).Fields("Ordnr").CurrentValue = "ABC123"
MsgBox(obj.Ec002(0).Ordnr)
It returns the first messagebox box with "UNiQUEiD" and the second with "ABC123".
What is the difference between these 2 functionalities.
Thanks in advance