I have an EntityCollection<MoneyTransferEntity>() which has ~1450 items.
I take one of them and attempt to clone it. It is too slow and takes 2.5MB (not using FastSerialization).
I assume then it is serializing the whole graph so in the Cloning code, I use a ReferencedEntityMap on the single Entity being serialized and it shows just 4 seen entities - the target itself and 3 child entities (which is actually exactly what I want to clone).
I have an auditor which relies on using ReferenceEntityMap to detect every entity within a graph and attach itself to those entities and set event handlers.
If ReferenceEntityMap is not picking up every entity within a graph then I have a big problem, so my question is what exactly should ReferenceEntityMap be picking up?
Also, I need to be able to 'clone' the 4 entities mentioned above regardless of the fact that they are in a collection. If binary serialization is not an option, what exactly do I need to do to make an exact duplicate of the parent entity and its 3 child entities?
(Latest version of v3.5)