* XmlDataInferenceLoader.cs : It was not always filling relation
child table information correctly. This fixes bug #60742.
svn path=/trunk/mcs/; revision=30467
+2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XmlDataInferenceLoader.cs : It was not always filling relation
+ child table information correctly. This fixes bug #60742.
+
2004-06-23 Umadevi S <sumadevi@novell.com>
* UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1
map = new TableMapping (tableName, ns);\r
map.ParentTable = parent;\r
tables.Add (map);\r
- if (parent != null)\r
+ }\r
+ if (parent != null) {\r
+ bool shouldAdd = true;\r
+ foreach (TableMapping child in parent.ChildTables) {\r
+ if (child.Table.TableName == tableName) {\r
+ shouldAdd = false;\r
+ break;\r
+ }\r
+ }\r
+ if (shouldAdd)\r
parent.ChildTables.Add (map);\r
}\r
return map;\r