Using latest runtime library and self servicing.
I took the code in the help documentation
StreamWriter writer = new StreamWriter("customer.XML");
string customerXml = String.Empty;
customer.WriteXml(out customerXml);
writer.Write(customerXml);
writer.Close();
And tried it with an entity which has nested entities e.g. the customer contains the address within an address entity but also has name properties which are primitive types.
All the primitive types and values of the top level entitiy i.e. customer here serialise fine however nested entities dont.
They only seem to serialise if you retrieve the data i.e. you add some code such as
AddressEntity address = customer.Address;
1) Is it possible to use WriteXml methods or any serialisation to serialise the whole object and all related entities without having to retrieve all the data through code e.g. just by finding a customer by the identifier? The XmlFormatAspect enumeration values don't seem to have any options related to this.
2) If 1 is not possible, is there any quick way or could a generic function be written to retrieve all related entities for an LLBLGEN EntityBase derived object. At least if 1 isn't possible, this generic method could then be called followed by WriteXml to serialise all data.