M
Michael
After spending a few hours experimenting the typed dataset serialization
(see previous post "How to include public properties in a typed dataset in
serialization"), this is what I found which does look like a bug (I'm using
the normal serialization with XmlSerializer):
.. The values for the public property are in fact written into the Xml.
They are presented as the attributes of the Element for the Dataset. They
have the namespace of "msdata".
.. If the public property is of Int16, it will be ignored and not written
into the Xml.
.. For the public properties which are written into the Xml, the
deserialization does not recover them. This means that the instance
returned from the deserialization doesn't have these property values set.
So it seems to me that something is only half done here. If the behaviour
is by design, then I don't understand why these public properties were
written into the Xml in the first place. And why properties with certain
data type are not written into the Xml at the same time.
Michael
(see previous post "How to include public properties in a typed dataset in
serialization"), this is what I found which does look like a bug (I'm using
the normal serialization with XmlSerializer):
.. The values for the public property are in fact written into the Xml.
They are presented as the attributes of the Element for the Dataset. They
have the namespace of "msdata".
.. If the public property is of Int16, it will be ignored and not written
into the Xml.
.. For the public properties which are written into the Xml, the
deserialization does not recover them. This means that the instance
returned from the deserialization doesn't have these property values set.
So it seems to me that something is only half done here. If the behaviour
is by design, then I don't understand why these public properties were
written into the Xml in the first place. And why properties with certain
data type are not written into the Xml at the same time.
Michael