79 references to ParentTable
System.Data (79)
fx\src\data\System\Data\CodeGen\datacache.cs (10)
226
if (relations[i].
ParentTable
== parentTable) {
241
if(1 < TablesConnectedness(relation.
ParentTable
, relation.ChildTable)) {
257
typedName = RowClassName(relation.
ParentTable
);
259
relation.ChildTable == relation.
ParentTable
|| // Self join
264
if(1 < TablesConnectedness(relation.
ParentTable
, relation.ChildTable)) {
281
if (relation.ChildTable == relation.
ParentTable
) {
449
string ParentTypedRowName = RowClassName(relation.
ParentTable
);
474
string ParentTypedRowName = RowClassName(relation.
ParentTable
);
941
string ParentTypedRowName = RowClassName(relation.
ParentTable
);
1324
string parentTableField = TableFieldName(relation.
ParentTable
);
fx\src\data\System\Data\DataRelation.cs (18)
390
((DataRelationCollection.DataTableRelationCollection)(
ParentTable
.ChildRelations)).OnRelationPropertyChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, this));
395
((DataRelationCollection.DataTableRelationCollection)(
ParentTable
.ChildRelations)).OnRelationPropertyChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, this));
407
if (rel.
ParentTable
.Namespace != ns) {
425
DataTable dt =
ParentTable
;
427
if (ChildTable ==
ParentTable
){
440
if (rel.
ParentTable
== ChildTable && rel.ChildTable != ChildTable) {
443
if (!list.Contains (rel.
ParentTable
)) { // check for self nested
444
list.Add(rel.
ParentTable
);
480
CheckNamespaceValidityForNestedRelations(
ParentTable
.Namespace);
494
this.
ParentTable
.Columns.RegisterColumnName(this.ChildTable.TableName, null);
496
this.
ParentTable
.Columns.UnregisterName(this.ChildTable.TableName);
503
if (
ParentTable
== ChildTable) {
516
this.
ParentTable
.ElementColumnCount++;
519
this.
ParentTable
.ElementColumnCount--;
531
parentNs = rel.
ParentTable
.Namespace;
534
if (String.Compare(parentNs, rel.
ParentTable
.Namespace, StringComparison.Ordinal) != 0) {
698
DataTable parent = destination.Tables[
ParentTable
.TableName,
ParentTable
.Namespace];
fx\src\data\System\Data\DataRelationCollection.cs (13)
197
if (relation.ChildTable.Locale.LCID != relation.
ParentTable
.Locale.LCID ||
198
relation.ChildTable.CaseSensitive != relation.
ParentTable
.CaseSensitive)
201
relation.CheckNamespaceValidityForNestedRelations(relation.
ParentTable
.Namespace);
203
relation.
ParentTable
.ElementColumnCount++;
463
relation.
ParentTable
.ElementColumnCount--;
466
relation.
ParentTable
.Columns.UnregisterName(relation.ChildTable.TableName);
568
if (relation.
ParentTable
!= table)
586
if (relation.
ParentTable
!= table)
612
if (relation.
ParentTable
!= table)
688
if (relation.ChildTable.DataSet != dataSet || relation.
ParentTable
.DataSet != dataSet)
711
((DataRelationCollection.DataTableRelationCollection)(relation.
ParentTable
.ChildRelations)).Add(relation); // Caching in ParentTable -> ChildRelations
739
UniqueConstraint key = relation.
ParentTable
.Constraints.FindKeyConstraint(relation.ParentColumnsReference);
758
((DataRelationCollection.DataTableRelationCollection)(relation.
ParentTable
.ChildRelations)).Remove(relation); // Remove Cache from ParentTable -> ChildRelations
fx\src\data\System\Data\DataRow.cs (3)
231
if (rel.
ParentTable
== _table) // self-nested table
769
throw ExceptionBuilder.RelationForeignTable(relation.
ParentTable
.TableName, _table.TableName);
823
if (rel.
ParentTable
== _table) // self-nested table
fx\src\data\System\Data\DataSet.cs (4)
452
parentInfo[0] = Tables.IndexOf(rel.
ParentTable
);
2288
if (rel.
ParentTable
== t) {
3036
if (relation.ChildTable.CaseSensitive != relation.
ParentTable
.CaseSensitive)
3066
if (relation.ChildTable.Locale.LCID != relation.
ParentTable
.Locale.LCID)
fx\src\data\System\Data\DataTable.cs (15)
990
if (rel.Nested && rel.
ParentTable
== this) {
1681
if (!rel.
ParentTable
.Columns.CanRegisterName(value)) {
1689
rel.
ParentTable
.Columns.RegisterColumnName(value, null);
1690
rel.
ParentTable
.Columns.UnregisterName(this.TableName);
1732
if (rel.
ParentTable
.tableNamespace != null) {
1733
return rel.
ParentTable
.tableNamespace; // if parent table has a non-null NS, return it
1739
while(j < nestedRelations.Length &&((nestedRelations[j].
ParentTable
== this)||(visitedTables.Contains(nestedRelations[j].
ParentTable
)))) {
1743
DataTable parentTable = nestedRelations[j].
ParentTable
;
1835
if (rel.
ParentTable
!= parentTable && rel.
ParentTable
.Namespace != ns) {
3920
if (relation.
ParentTable
!= row.Table) {
5655
if (rel != null && rel.
ParentTable
== tableList[i]) {
5878
if (tableList.Contains(r.ChildTable) && tableList.Contains(r.
ParentTable
)) {
6377
if (relation.
ParentTable
!= dc.Table)
fx\src\data\System\Data\Filter\LookupNode.cs (1)
55
DataTable parentTable = relation.
ParentTable
;
fx\src\data\System\Data\Merger.cs (3)
483
parent = dataSet.Tables[relation.
ParentTable
.TableName];
486
parent = dataSet.Tables[relation.
ParentTable
.TableName, relation.
ParentTable
.Namespace];
fx\src\data\System\Data\xmlsaver.cs (6)
444
if (table.ParentRelations[j].
ParentTable
== table) {
1184
DataTable parentTable = nestedParentRelations[i].
ParentTable
;
1414
string rName = rel.
ParentTable
.TableName + "_" + rel.ChildTable.TableName;
1495
if (nestedParentRelations[i].
ParentTable
!= _table) {
1504
_table = nestedParentRelations[nestedparentPosition].
ParentTable
;
2373
if (table.ParentRelations[j].
ParentTable
== table) {
fx\src\data\System\Data\XMLSchema.cs (5)
443
tableDictionary[relation.
ParentTable
].Add(relation.ChildTable);
1142
if (tableDictionary.ContainsKey(relation.
ParentTable
)) {
1143
tableDictionary[relation.
ParentTable
].Add(relation.ChildTable);
1519
if (tableDictionary.ContainsKey(relation.
ParentTable
)) {
1520
tableDictionary[relation.
ParentTable
].Add(relation.ChildTable);
fx\src\data\System\NewXml\XmlDataDocument.cs (1)
2612
if (relations.Length != 0 && relations[0].
ParentTable
== parentRow.Table ) // just backward compatable