2006-07-11 Senganal T <tsenganal@novell.com>
* Test/System.Data/schemas/test017.xsd : test if Relations and columns are
created correctly if schema is nested but relation is not.
* Test/System.Data/DataSetTest2.cs : Added tests for DataSet.WriteXmlSchema and
ReadXmlSchema methods to test nested schemas.
Also tests for bug #78810.
* System.Data/XmlSchemaWriter.cs :
- WriteTableType : If Relation.Nested is true, then nest the
table schemas. Correct the xml to add the table element within
the <Sequence> element.
- WriteChildRelations : Correct the Xml element name and
attributes. Close the attribute correctly.
* System.Data/XmlSchemaDataImporter.cs :
- GenerateRelationship : When creating the relations, if
ParentColumn exists but Corr ChildCol is null, create a child
Column with the same name and type as the parent column.
- Renamed DataSetDefinesPrimaryKey to DataSetDefinesKey
- DataSetDefinesKey : if either xsd:key or xsd:keyref is
defined for the dataset, do not manually create the relations.
fixes bug #78810
- AddParentKeyColumn : if Columnname already exists, use
colname_0 instead of throwing an exception.
- FillDataColumnRepeatedSimpleElement : Do not set the Unique
value as it creates a constraint by default. The unique value
is automatically set when pk is set.
- CreateChildColumns : Added. Creates a ChildColumn duplicating
ParentColumn properties.
svn path=/trunk/mcs/; revision=62443