Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SetNestedParentRow()

void System.Data.DataRow.SetNestedParentRow ( DataRow parentRow,
bool setNonNested )
inlinepackage

Definition at line 1092 of file DataRow.cs.

1093 {
1094 if (parentRow == null)
1095 {
1097 return;
1098 }
1099 foreach (DataRelation parentRelation in _table.ParentRelations)
1100 {
1101 if (!(parentRelation.Nested || setNonNested) || parentRelation.ParentKey.Table != parentRow._table)
1102 {
1103 continue;
1104 }
1105 object[] keyValues = parentRow.GetKeyValues(parentRelation.ParentKey);
1107 if (parentRelation.Nested)
1108 {
1109 if (parentRow._table == _table)
1110 {
1112 }
1113 else
1114 {
1116 }
1117 }
1118 }
1119 }
void CheckForLoops(DataRelation rel)
Definition DataRow.cs:423
void SetKeyValues(DataKey key, object[] keyValues)
Definition DataRow.cs:1064
DataRow? GetParentRow(string? relationName)
Definition DataRow.cs:714
void SetParentRowToDBNull()
Definition DataRow.cs:1154
readonly DataTable _table
Definition DataRow.cs:12
DataRelationCollection ParentRelations
Definition DataTable.cs:572

References System.Data.DataRow._table, System.Data.DataRow.CheckForLoops(), System.Xml.Dictionary, System.Data.DataRow.GetParentRow(), System.Data.DataTable.ParentRelations, System.Data.DataRow.SetKeyValues(), and System.Data.DataRow.SetParentRowToDBNull().

Referenced by System.Data.DataRow.SetParentRow().