66 references to ParentTable
System.Data.Common (66)
System\Data\DataRelation.cs (17)
381((DataRelationCollection.DataTableRelationCollection)(ParentTable.ChildRelations)).OnRelationPropertyChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, this)); 387((DataRelationCollection.DataTableRelationCollection)(ParentTable.ChildRelations)).OnRelationPropertyChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, this)); 403if (rel.ParentTable.Namespace != ns) 421if (ChildTable == ParentTable) 437if (rel.ParentTable == ChildTable && rel.ChildTable != ChildTable) 441if (!list.Contains(rel.ParentTable)) 444list.Add(rel.ParentTable); 483CheckNamespaceValidityForNestedRelations(ParentTable.Namespace); 498ParentTable.Columns.RegisterColumnName(ChildTable.TableName, null); 502ParentTable.Columns.UnregisterName(ChildTable.TableName); 510if (ParentTable == ChildTable) 531ParentTable.ElementColumnCount++; 535ParentTable.ElementColumnCount--; 552parentNs = rel.ParentTable.Namespace; 556if (!string.Equals(parentNs, rel.ParentTable.Namespace, StringComparison.Ordinal)) 718DataTable parent = destination.Tables[ParentTable.TableName, ParentTable.Namespace]!;
System\Data\DataRelationCollection.cs (13)
201if (relation.ChildTable.Locale.LCID != relation.ParentTable.Locale.LCID || 202relation.ChildTable.CaseSensitive != relation.ParentTable.CaseSensitive) 209relation.CheckNamespaceValidityForNestedRelations(relation.ParentTable.Namespace); 211relation.ParentTable.ElementColumnCount++; 500relation.ParentTable.ElementColumnCount--; 501relation.ParentTable.Columns.UnregisterName(relation.ChildTable.TableName); 611if (relation.ParentTable != _table) 639if (relation.ParentTable != _table) 676if (relation.ParentTable != _table) 764if (relation.ChildTable.DataSet != _dataSet || relation.ParentTable.DataSet != _dataSet) 796((DataTableRelationCollection)(relation.ParentTable.ChildRelations)).Add(relation); // Caching in ParentTable -> ChildRelations 824UniqueConstraint? key = relation.ParentTable.Constraints.FindKeyConstraint(relation.ParentColumnsReference); 847((DataTableRelationCollection)(relation.ParentTable.ChildRelations)).Remove(relation); // Remove Cache from ParentTable -> ChildRelations
System\Data\DataRow.cs (3)
235if (rel.ParentTable == _table) // self-nested table 830throw ExceptionBuilder.RelationForeignTable(relation.ParentTable.TableName, _table.TableName); 893if (rel.ParentTable == _table) // self-nested table
System\Data\DataSet.cs (4)
553parentInfo[0] = Tables.IndexOf(rel.ParentTable); 2549if (rel.ParentTable == t) 3326if (relation.ChildTable.CaseSensitive != relation.ParentTable.CaseSensitive) 3366if (relation.ChildTable.Locale.LCID != relation.ParentTable.Locale.LCID)
System\Data\DataTable.cs (15)
1110if (rel.Nested && rel.ParentTable == this) 1803if (!rel.ParentTable.Columns.CanRegisterName(value)) 1813rel.ParentTable.Columns.RegisterColumnName(value, null); 1814rel.ParentTable.Columns.UnregisterName(TableName); 1865if (rel.ParentTable._tableNamespace != null) 1867return rel.ParentTable._tableNamespace; // if parent table has a non-null NS, return it 1873while (j < nestedRelations.Length && ((nestedRelations[j].ParentTable == this) || (visitedTables.Contains(nestedRelations[j].ParentTable)))) 1879DataTable parentTable = nestedRelations[j].ParentTable; 1981if (rel.ParentTable != parentTable && rel.ParentTable.Namespace != ns) 4370if (relation.ParentTable != row.Table) 6392if (rel != null && rel.ParentTable == tableList[i]) 6679if (tableList.Contains(r.ChildTable) && tableList.Contains(r.ParentTable)) 7241if (relation.ParentTable != dc.Table)
System\Data\Filter\LookupNode.cs (1)
56DataTable parentTable = _relation.ParentTable;
System\Data\Merger.cs (3)
571_dataSet.Tables[relation.ParentTable.TableName]! : 572_dataSet.Tables[relation.ParentTable.TableName, relation.ParentTable.Namespace]!;
System\Data\xmlsaver.cs (6)
519if (table.ParentRelations[j].ParentTable == table) 1402DataTable parentTable = nestedParentRelations[i].ParentTable; 1665string rName = rel.ParentTable.TableName + "_" + rel.ChildTable.TableName; 1758if (nestedParentRelations[i].ParentTable != _table) 1770_table = nestedParentRelations[nestedparentPosition].ParentTable; 2741if (table.ParentRelations[j].ParentTable == table)
System\Data\XMLSchema.cs (3)
505_tableDictionary![relation.ParentTable].Add(relation.ChildTable); 1348if (_tableDictionary!.TryGetValue(relation.ParentTable, out List<DataTable>? value)) 1761if (_tableDictionary!.TryGetValue(relation.ParentTable, out List<DataTable>? value))
System\Xml\XmlDataDocument.cs (1)
2909if (relations.Length != 0 && relations[0].ParentTable == parentRow.Table) // just backward compatible