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