[Mono-bugs] [Bug 77639][Wis] New - The xsd program does not respect
the AutoIncrement and ReadOnly attributes
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Feb 24 16:49:35 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=77639
--- shadow/77639 2006-02-24 16:49:35.000000000 -0500
+++ shadow/77639.tmp.3824 2006-02-24 16:49:35.000000000 -0500
@@ -0,0 +1,59 @@
+Bug#: 77639
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details: Fedora Core 4
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Sys.Data
+AssignedTo: tsenganal at novell.com
+ReportedBy: prensing at cimetrics.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: The xsd program does not respect the AutoIncrement and ReadOnly attributes
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+I am working with DataSets created from the xsd program. The file coming
+from Visual Studio has attributes like:
+ msdata:ReadOnly="true"
+ msdata:AutoIncrement="true"
+on the column descriptions. For instance:
+
+<xs:element name="EQUIPMENTID" msdata:ReadOnly="true"
+msdata:AutoIncrement="true" msprop:Generator_UserColumnName="EQUIPMENTID"
+msprop:Generator_ColumnVarNameInTable="columnEQUIPMENTID"
+msprop:Generator_ColumnPropNameInRow="EQUIPMENTID"
+msprop:Generator_ColumnPropNameInTable="EQUIPMENTIDColumn" type="xs:int" />
+
+This describes the primary key column of our EQUIPMENT table.
+
+The AutoIncrement flag gets translated into C# code which sets
+AutoIncrement=true on the DataColumn object. Similar for ReadOnly.
+
+I also noticed that some of the function signatures are wrong. There is
+always a function AddEQUIPMENTRow() which has arguments for each of the
+column values. Under VS, EQUIPMENTID is *not* included, presumably because
+of the two extra flags.
+
+
+Steps to reproduce the problem:
+1. Create an XSD file which is supposed to include an AutoIncrement column
+2. Run xsd to translate into C#
+3.
+
+Actual Results:
+No code to set the AutoIncrement flag is included.
+
+Expected Results:
+AutoIncrement should be set.
+
+How often does this happen?
+Always.
+
+Additional Information:
More information about the mono-bugs
mailing list