yasser777 / nettiers

Automatically exported from code.google.com/p/nettiers
0 stars 0 forks source link

Enhancement Request: Add support to add [XmlElement([assoc table])] on child collections (with solution) #425

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. De-serialize XML with child collection to a nettiers generated object that 
has child collection. (Simulating a deepload with a single DB call for example)
2. child collection is not loaded
3.

What is the expected output? What do you see instead?
Expect the child collection to be loaded if present in the de-serialized XML. 
child collection is not loaded

What version of .netTiers and CodeSmith are you using?
nettiers: v2.3.1, CS Pro 6.5.0 Rev 14588

Please provide any additional information below.
My working solution:

//change to add xmlelement to assocaited tables so that xml serialization to 
entity can (deep) load secondary tables also
nettiers\v2.3.1\Entities\EntityInstanceBase.generated.cst : Line 1552
added :
[XmlElement(""{4}"")]

nettiers\v2.3.1\Entities\EntityInstanceBase.generated.cst : Line 1589
added :
, item.SecondaryTableSchema.Name  

Original issue reported on code.google.com by kozch...@gmail.com on 23 Jun 2012 at 9:24