123 references to ChildTable
System.Data.Common (123)
System\Data\DataRelation.cs (46)
382((DataRelationCollection.DataTableRelationCollection)(ChildTable.ParentRelations)).OnRelationPropertyChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, this)); 388((DataRelationCollection.DataTableRelationCollection)(ChildTable.ParentRelations)).OnRelationPropertyChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, this)); 399foreach (DataRelation rel in ChildTable.ParentRelations) 405throw ExceptionBuilder.InValidNestedRelation(ChildTable.TableName); 421if (ChildTable == ParentTable) 423if (string.Compare(ChildTable.TableName, ChildTable.DataSet!.DataSetName, true, ChildTable.DataSet.Locale) == 0) 424throw ExceptionBuilder.SelfnestedDatasetConflictingName(ChildTable.TableName); 429list.Add(ChildTable); 437if (rel.ParentTable == ChildTable && rel.ChildTable != ChildTable) 439throw ExceptionBuilder.LoopInNestedRelations(ChildTable.TableName); 481if (ChildTable.IsNamespaceInherited()) 485Debug.Assert(ChildTable != null, "On a DataSet, but not on Table. Bad state"); 486ForeignKeyConstraint? constraint = ChildTable.Constraints.FindForeignKeyConstraint(ChildKey.ColumnsReference, ParentKey.ColumnsReference); 498ParentTable.Columns.RegisterColumnName(ChildTable.TableName, null); 502ParentTable.Columns.UnregisterName(ChildTable.TableName); 510if (ParentTable == ChildTable) 512foreach (DataRow row in ChildTable.Rows) 517if (ChildTable.DataSet != null && (string.Compare(ChildTable.TableName, ChildTable.DataSet.DataSetName, true, ChildTable.DataSet.Locale) == 0)) 521ChildTable._fNestedInDataset = false; 525foreach (DataRow row in ChildTable.Rows) 539ChildTable.CacheNestedParent(); 542if (string.IsNullOrEmpty(ChildTable.Namespace) && ((ChildTable.NestedParentsCount > 1) || 543((ChildTable.NestedParentsCount > 0) && !(ChildTable.DataSet!.Relations.Contains(RelationName))))) 546foreach (DataRelation rel in ChildTable.ParentRelations) 559throw ExceptionBuilder.InvalidParentNamespaceinNestedRelation(ChildTable.TableName); 565if (CheckMultipleNested && ChildTable._tableNamespace != null && ChildTable._tableNamespace.Length == 0) 567throw ExceptionBuilder.TableCantBeNestedInTwoTables(ChildTable.TableName); 569ChildTable._tableNamespace = null; // if we dont throw, then let it inherit the Namespace 719DataTable child = destination.Tables[ChildTable.TableName, ChildTable.Namespace]!; 778if (0 < ChildTable.NestedParentRelations.Length) 783throw ExceptionBuilder.TableCantBeNestedInTwoTables(ChildTable.TableName); 788throw ExceptionBuilder.TableCantBeNestedInTwoTables(ChildTable.TableName); 791foreach (Constraint cs in ChildTable.Constraints) 797throw ExceptionBuilder.TableCantBeNestedInTwoTables(ChildTable.TableName); 805throw ExceptionBuilder.TableCantBeNestedInTwoTables(ChildTable.TableName);
System\Data\DataRelationCollection.cs (14)
201if (relation.ChildTable.Locale.LCID != relation.ParentTable.Locale.LCID || 202relation.ChildTable.CaseSensitive != relation.ParentTable.CaseSensitive) 501relation.ParentTable.Columns.UnregisterName(relation.ChildTable.TableName); 604if (relation.ChildTable != _table) 632if (relation.ChildTable != _table) 669if (relation.ChildTable != _table) 764if (relation.ChildTable.DataSet != _dataSet || relation.ParentTable.DataSet != _dataSet) 797((DataTableRelationCollection)(relation.ChildTable.ParentRelations)).Add(relation); // Caching in ChildTable -> ParentRelations 803relation.ChildTable.CacheNestedParent(); 806ForeignKeyConstraint? foreignKey = relation.ChildTable.Constraints.FindForeignKeyConstraint(relation.ParentColumnsReference, relation.ChildColumnsReference); 811relation.ChildTable.Constraints.Add(foreignKey = new ForeignKeyConstraint(relation.ParentColumnsReference, relation.ChildColumnsReference)); 839relation.ChildTable.CacheNestedParent(); 848((DataTableRelationCollection)(relation.ChildTable.ParentRelations)).Remove(relation); // Removing Cache from ChildTable -> ParentRelations 851relation.ChildTable.CacheNestedParent();
System\Data\DataRow.cs (2)
875throw ExceptionBuilder.GetParentRowTableMismatch(relation.ChildTable.TableName, _table.TableName); 937throw ExceptionBuilder.GetParentRowTableMismatch(relation.ChildTable.TableName, _table.TableName);
System\Data\DataSet.cs (5)
560childInfo[0] = Tables.IndexOf(rel.ChildTable); 799(dt.NestedParentRelations.Length == 1 && dt.NestedParentRelations[0].ChildTable == dt)) 3326if (relation.ChildTable.CaseSensitive != relation.ParentTable.CaseSensitive) 3366if (relation.ChildTable.Locale.LCID != relation.ParentTable.Locale.LCID) 3419return FindTable(((DataRelationPropertyDescriptor)currentProp).Relation.ChildTable, props, propStart + 1);
System\Data\DataTable.cs (14)
1941if ((rel.Nested) && (rel.ChildTable != this) && (rel.ChildTable._tableNamespace == null)) 1943DataTable childTable = rel.ChildTable; 1960rel.ChildTable.CheckNamespaceValidityForNestedParentRelations(realNamespace, this); 1964rel.ChildTable.CheckNamespaceValidityForNestedParentRelations(GetInheritedNamespace(new List<DataTable>()), this); 2004if ((rel.Nested) && (rel.ChildTable != this)) 2006rel.ChildTable.DoRaiseNamespaceChange(); 2390CloneHierarchy(r.ChildTable, ds, visitedMap); 4360if (relation.ChildTable != row.Table) 6666if (!tableList.Contains(r.ChildTable)) 6668tableList.Add(r.ChildTable); 6669CreateTableList(r.ChildTable, tableList); 6679if (tableList.Contains(r.ChildTable) && tableList.Contains(r.ParentTable)) 7273if (relation.ChildTable != dc.Table)
System\Data\Filter\AggregateNode.cs (1)
108_childTable = (_relation == null) ? table : _relation.ChildTable;
System\Data\Merger.cs (3)
575_dataSet.Tables[relation.ChildTable.TableName]! : 576_dataSet.Tables[relation.ChildTable.TableName, relation.ChildTable.Namespace]!;
System\Data\XDRSchema.cs (1)
618if (_tableChild == childRelations[j].ChildTable)
System\Data\XMLDiffLoader.cs (3)
43if (!_tables!.Contains(r.ChildTable)) 45_tables.Add(r.ChildTable); 46CreateTablesHierarchy(r.ChildTable);
System\Data\xmlsaver.cs (13)
483if (!_tables.Contains(r.ChildTable)) 485_tables.Add(r.ChildTable); 486CreateTablesHierarchy(r.ChildTable); 499CreateRelations(r.ChildTable); 1665string rName = rel.ParentTable.TableName + "_" + rel.ChildTable.TableName; 1932DataTable childTable = childRelations[j].ChildTable; 2309if (!_tables.Contains(r.ChildTable)) 2311_tables.Add(r.ChildTable); 2312CreateTableHierarchy(r.ChildTable); 2769if (!_dTables.Contains(r.ChildTable)) 2771_dTables.Add(r.ChildTable); 2772CreateTablesHierarchy(r.ChildTable); 3100XmlDataRowWriter(r, dr.ChildTable.EncodedTableName);
System\Data\XMLSchema.cs (7)
505_tableDictionary![relation.ParentTable].Add(relation.ChildTable); 818if (childRelations[j].Nested && dt.Namespace == childRelations[j].ChildTable.Namespace) 821childRelations[j].ChildTable._tableNamespace = null; 958if (child == childRelations[j].ChildTable) 1350value.Add(relation.ChildTable); 1719if (_tableChild == childRelations[j].ChildTable) 1763value.Add(relation.ChildTable);
System\Data\XmlToDatasetMap.cs (10)
326string _tableLocalName = XmlConvert.EncodeLocalName(r.ChildTable.TableName); 332nameTable.Get(r.ChildTable.Namespace) ?? 333nameTable.Add(r.ChildTable.Namespace); 336tableSchemaInfo.ColumnsSchemaMap[idTable] = r.ChildTable; 398string _tableLocalName = XmlConvert.EncodeLocalName(r.ChildTable.TableName); 405nameTable.Get(r.ChildTable.Namespace) ?? 406nameTable.Add(r.ChildTable.Namespace); 409tableSchemaInfo.ColumnsSchemaMap[idTable] = r.ChildTable; 426if (!tableList.Contains(childRelations.ChildTable)) 427tableList.Add(childRelations.ChildTable);
System\Xml\XmlDataDocument.cs (4)
1578Debug.Assert(relation.ChildTable == row.Table); 3083DataTable childTable = r.ChildTable; 3103DataTable childTable = r.ChildTable; 3120DataTable childTable = r.ChildTable;