System.Data.DataRelation.SetParentRowRecords C# (CSharp) Method

SetParentRowRecords() private method

private SetParentRowRecords ( DataRow childRow, DataRow parentRow ) : void
childRow DataRow
parentRow DataRow
return void
        internal void SetParentRowRecords(DataRow childRow, DataRow parentRow)
        {
            object[] parentKeyValues = parentRow.GetKeyValues(ParentKey);
            if (childRow._tempRecord != -1)
            {
                ChildTable._recordManager.SetKeyValues(childRow._tempRecord, ChildKey, parentKeyValues);
            }
            if (childRow._newRecord != -1)
            {
                ChildTable._recordManager.SetKeyValues(childRow._newRecord, ChildKey, parentKeyValues);
            }
            if (childRow._oldRecord != -1)
            {
                ChildTable._recordManager.SetKeyValues(childRow._oldRecord, ChildKey, parentKeyValues);
            }
        }