This question is locked. New answers and comments are not allowed.
How I can get XML data from ORM?
e.g.
Something like this :
Thanks, Michael.
e.g.
public
StoreDB pgData =
new
StoreDB();
public
string
ReadStorage()
{
var result = from c
in
pgData.Objekats
orderby c.Naziv
select c;
// how to convert, something like :
string
myXML = result.toXML()???
// or there is another way?
}
Something like this :
string
myXML;
DataSet myDS =
new
DataSet();
OleDbCommand MyCmd =
new
OleDbCommand(cSQL, oCn1.oCon);
OleDbDataAdapter myDA =
new
OleDbDataAdapter(MyCmd);
oCn1.ConOpen();
myDA.Fill(myDS,
"Cursor1"
);
myXML = myDS.GetXml();
Thanks, Michael.