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

◆ MarkRelatedRowsAsModified()

void System.Data.DataSet.MarkRelatedRowsAsModified ( TableChanges[] bitMatrix,
DataRow row )
inlineprivate

Definition at line 1179 of file DataSet.cs.

1180 {
1181 DataRelationCollection parentRelations = row.Table.ParentRelations;
1183 for (int i = 0; i < count; i++)
1184 {
1185 DataRow[] parentRows = row.GetParentRows(parentRelations[i], DataRowVersion.Current);
1186 DataRow[] array = parentRows;
1187 foreach (DataRow dataRow in array)
1188 {
1189 int num = Tables.IndexOf(dataRow.Table);
1190 int index = dataRow.Table.Rows.IndexOf(dataRow);
1191 if (!bitMatrix[num][index])
1192 {
1193 bitMatrix[num][index] = true;
1194 if (DataRowState.Deleted != dataRow.RowState)
1195 {
1197 }
1198 }
1199 }
1200 }
1201 }
DataTableCollection Tables
Definition DataSet.cs:396
void MarkRelatedRowsAsModified(TableChanges[] bitMatrix, DataRow row)
Definition DataSet.cs:1179

References System.array, System.count, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Runtime.Serialization.Dictionary, System.index, System.Data.DataTableCollection.IndexOf(), System.Data.DataSet.MarkRelatedRowsAsModified(), and System.Data.DataSet.Tables.

Referenced by System.Data.DataSet.MarkModifiedRows(), and System.Data.DataSet.MarkRelatedRowsAsModified().