[Mono-bugs] [Bug 61233][Nor] Changed - DataSet::ExtendedProperties not written on DataSet::WriteXml
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 17 Jul 2004 01:53:51 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by atsushi@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=61233
--- shadow/61233 2004-07-17 01:00:46.000000000 -0400
+++ shadow/61233.tmp.6770 2004-07-17 01:53:51.000000000 -0400
@@ -1,12 +1,12 @@
Bug#: 61233
Product: Mono: Class Libraries
Version: unspecified
OS: All
OS Details:
-Status: NEW
+Status: NEEDINFO
Resolution:
Severity: Unknown
Priority: Normal
Component: Sys.Data
AssignedTo: mono-bugs@ximian.com
ReportedBy: dev@6wardlaw.freeserve.co.uk
@@ -72,6 +72,46 @@
This could simply make use of the ToString( ) method for any objects
stored. It would then be up to the user of the container to ensure that
the string could be interpreted as required.
------- Additional Comments From miguel@ximian.com 2004-07-17 01:00 -------
Adding Atsushi and Uma who have worked on this area in the past.
+
+------- Additional Comments From atsushi@ximian.com 2004-07-17 01:53 -------
+Oops, sorry I missed.
+
+well, I tried this code, but MS result also doesn't contain that
+extended property:
+
+using System;
+using System.Data;
+
+public class Test
+{
+ public static void Main ()
+ {
+ DataSet ds = new DataSet ();
+ DataTable dt = new DataTable ("Foo");
+ dt.Columns.Add ("col1");
+ dt.Rows.Add (new object [] {"foo"});
+ ds.Tables.Add (dt);
+ ds.ExtendedProperties.Add ("version", "version 2.1");
+ ds.WriteXml (Console.Out);
+ }
+}
+
+
+$ ./61233.exe
+<NewDataSet>
+ <Foo>
+ <col1>foo</col1>
+ </Foo>
+</NewDataSet>
+
+$ mono 61233.exe
+<NewDataSet>
+ <Foo>
+ <col1>foo</col1>
+ </Foo>
+</NewDataSet>
+
+Can you provide example code that shows differences between MS and mono?