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