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

◆ GetParentRows()

static DataRow[] System.Data.DataRelation.GetParentRows ( DataKey parentKey,
DataKey childKey,
DataRow childRow,
DataRowVersion version )
inlinestaticpackage

Definition at line 392 of file DataRelation.cs.

393 {
394 object[] keyValues = childRow.GetKeyValues(childKey, version);
395 if (IsKeyNull(keyValues))
396 {
397 return parentKey.Table.NewRowArray(0);
398 }
399 Index sortIndex = parentKey.GetSortIndex((version == DataRowVersion.Original) ? DataViewRowState.OriginalRows : DataViewRowState.CurrentRows);
400 return sortIndex.GetRows(keyValues);
401 }
static bool IsKeyNull(object[] values)

References System.Data.DataRelation.IsKeyNull().

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