Serializing Fields in a Custom DataSet for XML

Is there a way to add fields to a DataSet that will be serialized along with table information when the DataSet is serialized in XML? I have some information that describes a DataSet that I want to try to include inside it when I throw it into XML. I tried to add fields and classes to the Visual Studio partial class for you for validation methods, but I cannot get them to appear along with table information in the XML file either when using myDataSet.WriteXML (), or I use XMLSerializer.

+1
source share
1 answer

I have never tried, but the ExtendedProperties property for the DataSet should be just for that. It allows you to store information that is saved when the DataSet is serialized in XML.

+2
source

Source: https://habr.com/ru/post/1726366/


All Articles