[Mono-bugs] [Bug 69276][Nor] Changed - XSD generates wrong code for ForeignKeyConstraints in typed datasets

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 10 Apr 2005 17:03:09 -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 notzcoolx@yahoo.es.

http://bugzilla.ximian.com/show_bug.cgi?id=69276

--- shadow/69276	2005-04-10 16:59:08.000000000 -0400
+++ shadow/69276.tmp.2821	2005-04-10 17:03:09.000000000 -0400
@@ -10,13 +10,12 @@
 Component: XSD
 AssignedTo: atsushi@ximian.com                            
 ReportedBy: martin.voelkle@epfl.ch               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
-Cc: 
 Summary: XSD generates wrong code for ForeignKeyConstraints in typed datasets
 
 Description of Problem: 
 When generating a typed dataset from a schema file which contains foreign 
 key constraints, the resulting code is wrong. 
  
@@ -184,6 +183,15 @@
 Applied your patch with a tiny fix. Thanks!
 
 ------- Additional Comments From notzcoolx@yahoo.es  2005-04-10 16:59 -------
 Created an attachment (id=14911)
 Patch to add the constraint relations to the generated DataSet
 
+
+------- Additional Comments From notzcoolx@yahoo.es  2005-04-10 17:03 -------
+I've added a patch that add the unknown relations and the foreing keys
+relations to the generated DataSet. The old behaviour didn't add them
+and breaks the Row methods that returns child or parent rows from the
+related table.
+I've tested in my installation and it works as expected, I've also
+test mono class libraries and passes all the tests (well, i think, it
+says '58 correctly detected errors (93.55 %)').