System.Xml.XmlDataDocument.SetNestedParentRow C# (CSharp) Méthode

SetNestedParentRow() private static méthode

private static SetNestedParentRow ( DataRow childRow, DataRow parentRow ) : void
childRow DataRow
parentRow DataRow
Résultat void
        private static void SetNestedParentRow(DataRow childRow, DataRow parentRow)
        {
            DataRelation rel = GetNestedParentRelation(childRow);
            //we should not set this row's parentRow if the table doesn't match.
            if (rel != null)
            {
                if (parentRow == null || rel.ParentKey.Table != parentRow.Table)
                    childRow.SetParentRow(null, rel);
                else
                    childRow.SetParentRow(parentRow, rel);
            }
        }
XmlDataDocument