[Mono-bugs] [Bug 75211][Nor] Changed - Cloning a Typed Dataset with relations

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jul 13 09:57:50 EDT 2005

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 timo-mono at pokorra.de.


--- shadow/75211	2005-07-13 09:55:18.000000000 -0400
+++ shadow/75211.tmp.15325	2005-07-13 09:57:50.000000000 -0400
@@ -45,6 +45,19 @@
 ------- Additional Comments From timo-mono at pokorra.de  2005-07-13 09:55 -------
 Created an attachment (id=15458)
 main file c# for test program, cloning strongly typed dataset
+------- Additional Comments From timo-mono at pokorra.de  2005-07-13 09:57 -------
+If you compile the demo program like that:
+mcs.bat -r:System.Data main.cs generated.cs /out:demo.exe
+It will run fine on MS, but have this messages on mono:
+Unhandled Exception: System.Data.DuplicateNameException: A
+DataRelation named 'CustOrders' already belongs to this DataSet.
+If there is nothing wrong in the generated code (or in the generator),
+then I would recommend the change I mentioned initially.
+In the case of strongly typed datasets, there are already tables and
+relations, because the constructor calls InitClass.

More information about the mono-bugs mailing list