I have a typed dataset in my project and i need to import data from XML. I managed to import data to Tables collection in my typed dataset, but I need to have access to the data via Annotations - properties named the same as tables in my dataset.
this.ConfigDataSet.Reset();
this.ConfigDataSet.ReadXml(FileName,XmlReadMode.ReadSchema);
this.ConfigDataSet.AcceptChanges();
Do I have to copy data field by field?
I have something like this:
this.ConfigDataSet.Tables["TabName"].Rows.Count //returns 3
this.ConfigDataSet.TabName.Rows.Count //returns 0
I write xml like this:
this.ConfigDataSet.AcceptChanges();
this.ConfigDataSet.WriteXml(FileName,XmlWriteMode.WriteSchema);
xmlfile, is it writing data in the file ? - Arshad