Hi there,
I ran into a small problem with an entity that has a child collection and I reload it with data to ensure I have the latest copy of it and its children. (the user may or may not of edited the record or its children.) I instatiate my entity, call a custom method to load a single record, then at a later stage call the load method again on the same instance and the child collection still contains the records from the initial load.
I had assumed, wrongly I guess, that a succesfull Query.Load would set any child collections to null, so that when you next reference the collection property on the entity it loads the child records again. As I am using a custom load method I have simply set the child collection to null so not a problem to fix. I realise I could have also recreated my object and loaded it rather than calling the load on the same instance a second time but that just feels wrong.
Is this behaviour by design? (Or am I going about this the wrong way? )
Cheers
Paul