Hi,
I am not sure if this is a bug or a feature
I am using SelfServicing and llblgen 2.6 (latest version).
I'm using some code you can find in the forums whene you search for Deep Copy (i.e. the CloneHelper). Somewhere in this code a graph is built using the ProduceTopologyOrderedList from ObjectGraphUtils. The graph that is built only contains the root entity and no children.
Here is the code
public static IEntity CloneEntity(IEntity Entity, bool ResetAsNew)
{
IEntity newEntity;
newEntity = (IEntity)CloneObject(Entity);
ObjectGraphUtils ogu = new ObjectGraphUtils();
List<IEntity> flatList = ogu.ProduceTopologyOrderedList(newEntity);
if (ResetAsNew)
for (int f = 0; f < flatList.Count; f++)
ResetEntityAsNew(flatList[f]);
return newEntity;
}
When I use a breakpoint at the line that declare the ObjectGraphUtils variable ogu and browse the newEntity, the graph contains both the root entity and the children
Could this have something to do with lazy loading? Is there a way to force the ProduceTopologyOrderedList to present the complete graph?
Best regards,
Jan