Hi,
I want to save some related entities onto an XML file ( i can use serialisation )
but I also want to insert some related new entities ( which are non existant in DB )
Here is an example ( **bold ** means my custom object related )
Customer customer=LoadCustomer();
foreach( Order order in Customer.Orders)
{
order.deliverDate=Now ;
// this is not in DB, and I may define a new class or
// if there is a way to generate using LLBLGen GUI I can do that ( like customEntity )
**CustomClass myobj=new CustomClass();**
myobj.SomeProperty = "somevalue" ;
myobj.SomeOtherProperty = "someothervalue" ;
// how can I get order to have relation to CustomObjects when it is not in DB
// and so not automatically generated relationship
order.**CustomObjects.Add(myobj);**
}
SaveEntireObjectGraph(customer);
So the resulting XMLFile will have something like this
<xml>
<customer id=1>
<order id=100 deliverDate="01/01/2005" >
// the following 2 are the main issues I need solution for
<customClass>
< someproperty="somevalue">
< someotherproperty="someothervalue">
</customClass>
<customClass>
< someproperty="somevalue">
< someotherproperty="someothervalue">
</customClass>
</order>
</customer>
</xml>