[Mono-bugs] [Bug 75211][Nor] New - Cloning a Typed Dataset with
relations
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Jun 10 06:30:43 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.
http://bugzilla.ximian.com/show_bug.cgi?id=75211
--- shadow/75211 2005-06-10 06:30:43.000000000 -0400
+++ shadow/75211.tmp.25619 2005-06-10 06:30:43.000000000 -0400
@@ -0,0 +1,34 @@
+Bug#: 75211
+Product: Mono: Class Libraries
+Version: 1.1
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Data
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: timo-mono at pokorra.de
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Cloning a Typed Dataset with relations
+
+Description of Problem:
+When you have a typed dataset, you probably will already have added
+relations in the constructor.
+When cloning such a dataset, it will properly check if tables are already
+existing, and not add them again. But this is not done for the relations.
+
+See Comment in System.Data/DataSet.cs, Clone():
+// tables are often added in no-args constructor, don't add them twice.
+
+I would expect something like that in CopyRelations (DataSet Copy) as well.
+
+foreach (DataRelation MyRelation in this.Relations) {
+ // relations are often added in no-args constructor, don't add them
+ // twice.
+ if (!Copy.Relations.Contains(MyRelation.RelationName)) {
+ ...
More information about the mono-bugs
mailing list