137 references to ChildTable
System.Data (137)
fx\src\data\System\Data\CodeGen\datacache.cs (10)
236string arrayName = (string)relation.ChildTable.ExtendedProperties["typedPlural"]; 238arrayName = (string)relation.ChildTable.ExtendedProperties["typedName"]; 240typedName = "Get" + relation.ChildTable.TableName + "Rows"; 241if(1 < TablesConnectedness(relation.ParentTable, relation.ChildTable)) { 259relation.ChildTable == relation.ParentTable || // Self join 264if(1 < TablesConnectedness(relation.ParentTable, relation.ChildTable)) { 281if (relation.ChildTable == relation.ParentTable) { 282if (relation.ChildTable.Columns.Count == 1) { 922string rowConcreateClassName = RowConcreteClassName(relation.ChildTable); 1331string childTableField = TableFieldName(relation.ChildTable);
fx\src\data\System\Data\DataRelation.cs (49)
302ChildTable.recordManager.SetKeyValues(childRow.tempRecord, ChildKey, parentKeyValues); 305ChildTable.recordManager.SetKeyValues(childRow.newRecord, ChildKey, parentKeyValues); 308ChildTable.recordManager.SetKeyValues(childRow.oldRecord, ChildKey, parentKeyValues); 391((DataRelationCollection.DataTableRelationCollection)(ChildTable.ParentRelations)).OnRelationPropertyChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, this)); 396((DataRelationCollection.DataTableRelationCollection)(ChildTable.ParentRelations)).OnRelationPropertyChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, this)); 405foreach(DataRelation rel in ChildTable.ParentRelations) { 408throw ExceptionBuilder.InValidNestedRelation(ChildTable.TableName); 427if (ChildTable == ParentTable){ 428if (String.Compare(ChildTable.TableName, ChildTable.DataSet.DataSetName, true, ChildTable.DataSet.Locale) == 0) 429throw ExceptionBuilder.SelfnestedDatasetConflictingName(ChildTable.TableName); 434list.Add(ChildTable); 440if (rel.ParentTable == ChildTable && rel.ChildTable != ChildTable) { 441throw ExceptionBuilder.LoopInNestedRelations(ChildTable.TableName); 479if (ChildTable.IsNamespaceInherited()) { // if not added to collection, don't do this check 482Debug.Assert(ChildTable != null, "On a DataSet, but not on Table. Bad state"); 483ForeignKeyConstraint constraint = ChildTable.Constraints.FindForeignKeyConstraint(ChildKey.ColumnsReference, ParentKey.ColumnsReference); 494this.ParentTable.Columns.RegisterColumnName(this.ChildTable.TableName, null); 496this.ParentTable.Columns.UnregisterName(this.ChildTable.TableName); 503if (ParentTable == ChildTable) { 504foreach(DataRow row in ChildTable.Rows) 507if (ChildTable.DataSet != null && ( String.Compare(ChildTable.TableName, ChildTable.DataSet.DataSetName, true, ChildTable.DataSet.Locale) == 0) ) 509ChildTable.fNestedInDataset = false; 512foreach(DataRow row in ChildTable.Rows) 523ChildTable.CacheNestedParent(); 525if (ADP.IsEmpty(ChildTable.Namespace) && ((ChildTable.NestedParentsCount > 1) || 526((ChildTable.NestedParentsCount > 0) && ! (ChildTable.DataSet.Relations.Contains(this.RelationName))))) { 528foreach(DataRelation rel in ChildTable.ParentRelations) { 536throw ExceptionBuilder.InvalidParentNamespaceinNestedRelation(ChildTable.TableName); 542if (CheckMultipleNested && ChildTable.tableNamespace != null && ChildTable.tableNamespace.Length == 0) { 543throw ExceptionBuilder.TableCantBeNestedInTwoTables(ChildTable.TableName); 545ChildTable.tableNamespace = null; // if we dont throw, then let it inherit the Namespace 699DataTable child = destination.Tables[ChildTable.TableName, ChildTable.Namespace]; 751if (0 < ChildTable.NestedParentRelations.Length) { 754throw ExceptionBuilder.TableCantBeNestedInTwoTables(ChildTable.TableName); 758throw ExceptionBuilder.TableCantBeNestedInTwoTables(ChildTable.TableName); 761foreach (Constraint cs in ChildTable.Constraints) { 765throw ExceptionBuilder.TableCantBeNestedInTwoTables(ChildTable.TableName); 771throw ExceptionBuilder.TableCantBeNestedInTwoTables(ChildTable.TableName);
fx\src\data\System\Data\DataRelationCollection.cs (14)
197if (relation.ChildTable.Locale.LCID != relation.ParentTable.Locale.LCID || 198relation.ChildTable.CaseSensitive != relation.ParentTable.CaseSensitive) 466relation.ParentTable.Columns.UnregisterName(relation.ChildTable.TableName); 564if (relation.ChildTable != table) 582if (relation.ChildTable != table) 608if (relation.ChildTable != table) 688if (relation.ChildTable.DataSet != dataSet || relation.ParentTable.DataSet != dataSet) 712((DataRelationCollection.DataTableRelationCollection)(relation.ChildTable.ParentRelations)).Add(relation); // Caching in ChildTable -> ParentRelations 717relation.ChildTable.CacheNestedParent(); 720ForeignKeyConstraint foreignKey = relation.ChildTable.Constraints.FindForeignKeyConstraint(relation.ParentColumnsReference, relation.ChildColumnsReference); 723relation.ChildTable.Constraints.Add(foreignKey = new ForeignKeyConstraint(relation.ParentColumnsReference, relation.ChildColumnsReference)); 752relation.ChildTable.CacheNestedParent(); 759((DataRelationCollection.DataTableRelationCollection)(relation.ChildTable.ParentRelations)).Remove(relation); // Removing Cache from ChildTable -> ParentRelations 761relation.ChildTable.CacheNestedParent();
fx\src\data\System\Data\DataRow.cs (2)
811throw ExceptionBuilder.GetParentRowTableMismatch(relation.ChildTable.TableName, _table.TableName); 874throw ExceptionBuilder.GetParentRowTableMismatch(relation.ChildTable.TableName, _table.TableName);
fx\src\data\System\Data\DataSet.cs (5)
458childInfo[0] = Tables.IndexOf(rel.ChildTable); 684(dt.NestedParentRelations.Length == 1 && dt.NestedParentRelations[0].ChildTable == dt)) { 3036if (relation.ChildTable.CaseSensitive != relation.ParentTable.CaseSensitive) 3066if (relation.ChildTable.Locale.LCID != relation.ParentTable.Locale.LCID) 3105return FindTable(((DataRelationPropertyDescriptor)currentProp).Relation.ChildTable, props, propStart + 1);
fx\src\data\System\Data\DataTable.cs (15)
1806if ((rel.Nested) && (rel.ChildTable != this) && (rel.ChildTable.tableNamespace == null)) { 1807DataTable childTable = rel.ChildTable; 1820rel.ChildTable.CheckNamespaceValidityForNestedParentRelations(realNamespace, this); 1823rel.ChildTable.CheckNamespaceValidityForNestedParentRelations(GetInheritedNamespace(new List<DataTable>()), this); 1852if ((rel.Nested) && (rel.ChildTable != this)) { 1853DataTable childTable = rel.ChildTable; 1855rel.ChildTable.DoRaiseNamespaceChange(); 2199DataTable childTable = CloneHierarchy((DataTable)r.ChildTable, ds, visitedMap); 3912if (relation.ChildTable != row.Table) { 5869if (! tableList.Contains(r.ChildTable)) { 5870tableList.Add(r.ChildTable); 5871CreateTableList(r.ChildTable, tableList); 5878if (tableList.Contains(r.ChildTable) && tableList.Contains(r.ParentTable)) { 6394if (relation.ChildTable != dc.Table)
fx\src\data\System\Data\Filter\AggregateNode.cs (1)
104childTable = (relation == null) ? table : relation.ChildTable;
fx\src\data\System\Data\Merger.cs (3)
492child = dataSet.Tables[relation.ChildTable.TableName]; 495child = dataSet.Tables[relation.ChildTable.TableName,relation.ChildTable.Namespace];
fx\src\data\System\Data\XDRSchema.cs (1)
593if (_tableChild == childRelations[j].ChildTable)
fx\src\data\System\Data\XMLDiffLoader.cs (3)
47if (! tables.Contains((DataTable)r.ChildTable)) { 48tables.Add((DataTable)r.ChildTable); 49CreateTablesHierarchy(r.ChildTable) ;
fx\src\data\System\Data\xmlsaver.cs (13)
417if (! _tables.Contains((DataTable)r.ChildTable)) { 418_tables.Add((DataTable)r.ChildTable); 419CreateTablesHierarchy(r.ChildTable); 429CreateRelations(r.ChildTable); 1414string rName = rel.ParentTable.TableName + "_" + rel.ChildTable.TableName; 1653DataTable childTable = childRelations[j].ChildTable; 2000if (! _tables.Contains((DataTable)r.ChildTable)) { 2001_tables.Add((DataTable)r.ChildTable); 2002CreateTableHierarchy(r.ChildTable); 2395if (! _dTables.Contains((DataTable)r.ChildTable)) { 2396_dTables.Add((DataTable)r.ChildTable); 2397CreateTablesHierarchy(r.ChildTable) ; 2673XmlDataRowWriter(r,dr.ChildTable.EncodedTableName);
fx\src\data\System\Data\XMLSchema.cs (7)
443tableDictionary[relation.ParentTable].Add(relation.ChildTable); 701if (childRelations[j].Nested && dt.Namespace == childRelations[j].ChildTable.Namespace) { // take NS from Parent table 702childRelations[j].ChildTable.tableNamespace = null; 817if (child == childRelations[j].ChildTable) 1143tableDictionary[relation.ParentTable].Add(relation.ChildTable); 1481if (_tableChild == childRelations[j].ChildTable) 1520tableDictionary[relation.ParentTable].Add(relation.ChildTable);
fx\src\data\System\Data\XmlToDatasetMap.cs (10)
295string _tableLocalName = XmlConvert.EncodeLocalName(r.ChildTable.TableName); 302string tableNamespace = nameTable.Get(r.ChildTable.Namespace ); 305tableNamespace = nameTable.Add(r.ChildTable.Namespace); 309tableSchemaInfo.ColumnsSchemaMap[idTable] = r.ChildTable; 364string _tableLocalName = XmlConvert.EncodeLocalName(r.ChildTable.TableName); 371string tableNamespace = nameTable.Get(r.ChildTable.Namespace ); 374tableNamespace = nameTable.Add(r.ChildTable.Namespace); 378tableSchemaInfo.ColumnsSchemaMap[idTable] = r.ChildTable; 393if (!tableList.Contains(childRelations.ChildTable)) 394tableList.Add(childRelations.ChildTable);
fx\src\data\System\NewXml\XmlDataDocument.cs (4)
1409Debug.Assert( relation.ChildTable == row.Table ); 2772DataTable childTable = r.ChildTable; 2790DataTable childTable = r.ChildTable; 2802DataTable childTable = r.ChildTable;