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

◆ GetChildRows()

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

Definition at line 381 of file DataRelation.cs.

382 {
383 object[] keyValues = parentRow.GetKeyValues(parentKey, version);
384 if (IsKeyNull(keyValues))
385 {
386 return childKey.Table.NewRowArray(0);
387 }
388 Index sortIndex = childKey.GetSortIndex((version == DataRowVersion.Original) ? DataViewRowState.OriginalRows : DataViewRowState.CurrentRows);
389 return sortIndex.GetRows(keyValues);
390 }
static bool IsKeyNull(object[] values)

References System.Data.DataRelation.IsKeyNull().

Referenced by System.Data.ForeignKeyConstraint.CheckCanRemoveParentRow(), and System.Data.DataRow.GetChildRows().