[Mono-bugs] [Bug 77248][Nor] New - xsd program does not handle self-referential tables

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jan 13 16:53:50 EST 2006


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 prensing at cimetrics.com.

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

--- shadow/77248	2006-01-13 16:53:50.000000000 -0500
+++ shadow/77248.tmp.28149	2006-01-13 16:53:50.000000000 -0500
@@ -0,0 +1,62 @@
+Bug#: 77248
+Product: Mono: Tools
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: tools
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: prensing at cimetrics.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: xsd program does not handle self-referential tables
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+In mono-1.1.13.0, the xsd program does not correctly handle generate code
+(CS) for a self-referential table. 
+
+We have a DB table which describes a tree, so it has a foreign key relation
+to itself. When xsd goes to generate the .cs file, it creates a method like: 
+
+   class TEST_TREERow {
+     // ...
+     public TEST_TREERow TEST_TREERow {
+        get {}...
+     }
+   }
+
+The Microsoft tool generates the method
+
+   class TEST_TREERow {
+     // ...
+     public TEST_TREERow TEST_TREERowParent {
+        get {}...
+     }
+   }
+
+I have included a little XSD file which demonstrates the problem.
+
+
+
+Steps to reproduce the problem:
+1. Fetch test.xsd
+2. Run xsd test.xsd /dataset
+3. Run mcs test.cs to see the error.
+
+Actual Results:
+
+
+Expected Results:
+Method should be renamed to XXXParent().
+
+How often does this happen? 
+Always
+
+Additional Information:


More information about the mono-bugs mailing list