[Mono-bugs] [Bug 422475] DataSet serialization error with all NULLs table rows
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Feb 20 09:42:12 EST 2009
https://bugzilla.novell.com/show_bug.cgi?id=422475
User migelU at gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=422475#c2
Michail Ushakov <migelU at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
Info Provider|migelU at gmail.com |
--- Comment #2 from Michail Ushakov <migelU at gmail.com> 2009-02-20 07:42:11 MST ---
using System;
using System.Data;
namespace DataSetSerializie
{
class Program
{
static void Main(string[] args)
{
DataSet ds = new DataSet();
DataTable tbl = ds.Tables.Add();
DataColumn c1 = tbl.Columns.Add("Col1", typeof(string));
tbl.Rows.Add(new object[]{"TestCatalog"});
tbl.Rows.Add(new object[]{null});
tbl.AcceptChanges();
DataColumn pk = tbl.Columns.Add("pk", typeof(string));
foreach (DataRow dr in tbl.Rows)
dr[pk] = "111";
ds.WriteXml("test1.xml", XmlWriteMode.DiffGram);
}
}
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list