public string var1="";
public string var2="";
public string VarMain ="";
public AList objAList = new AList();
A mainObj = new A();
mainObj.VarMain = "COMPANY_ID1";
foreach(A ref in PresentationEquivalentAList)
tempMainObj = new A();
Basically am trying to save multiple employees using the same list object. what i have observed is the above didn't work if i use BusinessListBase instead of EditableBusinessListBase.
Save Method in Business Layer of A
/*initialize data access layer
the entire object is sent as xml clob data type to backend oracle database.
which creates an xml like
i expected the part denoted in #s to have the objAList which will have each employee...
But what it show in the xml is just a plan string representation of the objAList object i.e it simply says that listobject name...
But the same process if i add extra SubA<BusinessBase>, SubAList<BusinessListBase> and add the SubAlList object as a property in A<BusinessBase> and eventually when i say toxml() it is now showing the clear xml including the child items under the list object as well..
hope the above is clear... please explain where am doing wrong... is this the correct approcah? thanks in advance...
How does your ToXML method work?
I suspect it uses the XmlSerializer or DataContractSerializer. Neither of these work against CSLA objects - that has been discussed many times on the forum, and is in the FAQ (http://www.lhotka.net/cslanet/faq/XmlServicesFaq.ashx), and is covered in the upcoming Using CSLA 4: Data Portal Configuration ebook.
Copyright (c) Marimer LLC