Thanks for the quick response.
I tend to use LLBLLGen (or 'Billy' as we call it) in a very simple way -- get a Collection, give it to a Janus grid, etc. I don't really understand 'directed graphs' and so on.
Whether I use XML or not, I must ensure that all children and grandchildren are exported. If I just get the top level entity I don't seem to get all children. So I tried the code below.
Is this because of lazy loading? When I loop through (some of) the children I get (all) the children. In other words, there are ent4, ent5... which I don't refer to but they still get fetched.
Note I don't do anything in the inner loop!
Dim MasterBackup As New DemMasterSchedulingProjectsEntity(GLB_MasterProjectEntity.MasterSchedulingProjectId)
MasterBackup.GetMultiDemSchedulingProjects(True)
For Each ent As DemSchedulingProjectsEntity In MasterBackup.DemSchedulingProjects
For Each ent2 As DemDemandPeriodsEntity In ent.DemDemandPeriods
For Each ent3 As DemDemandPeriodPresencesEntity In ent2.DemDemandPeriodPresences
Next
Next
Next
Dim writer As New IO.StreamWriter("c:\test.XML")
Dim MasterBackupXml As String = String.Empty
MasterBackup.WriteXml(MasterBackupXml)
writer.Write(MasterBackupXml)
writer.Close()