XSD generated AutoIncrement problem
-
I have generated a .cs file from my .xsd file using the command line program XSD. The xml file contains many nested tables, so several of the generated classes have columns with autoincrement=true. If I add a new child row then I would expect the autoincrement column to be set to a value after I add it. Unfortunately, it remains at DBNull. This means it becomes a root level item rather than the child it should be. Any ideas?
-
I have generated a .cs file from my .xsd file using the command line program XSD. The xml file contains many nested tables, so several of the generated classes have columns with autoincrement=true. If I add a new child row then I would expect the autoincrement column to be set to a value after I add it. Unfortunately, it remains at DBNull. This means it becomes a root level item rather than the child it should be. Any ideas?
Please confirm that you have provided values for AutoIncrementSeed and AutoIncrementSteps
Regards, Ritesh Mehrotra Software Engineer