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