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

◆ OnNestedParentChange()

void System.Xml.XmlDataDocument.OnNestedParentChange ( DataRow child,
XmlBoundElement childElement,
DataColumn childCol )
inlineprivate

Definition at line 1382 of file XmlDataDocument.cs.

1383 {
1386 if (dataRow == nestedParent)
1387 {
1388 return;
1389 }
1390 if (nestedParent != null)
1391 {
1393 elementFromRow.AppendChild(childElement);
1394 return;
1395 }
1397 if (childCol == null || nestedParentRelation == null || Convert.IsDBNull(child[childCol]))
1398 {
1400 return;
1401 }
1403 object value = dataColumn.ConvertValue(child[childCol]);
1404 if (dataRow._tempRecord != -1 && dataColumn.CompareValueTo(dataRow._tempRecord, value) != 0)
1405 {
1407 }
1408 }
DataRow GetNestedParent(DataRow row)
DataColumn FindAssociatedParentColumn(DataRelation relation, DataColumn childCol)
XmlElement EnsureNonRowDocumentElement()
static DataRelation GetNestedParentRelation(DataRow row)
XmlElement GetElementFromRow(DataRow r)
DataRow? GetRowFromElement(XmlElement? e)
virtual ? XmlNode AppendChild(XmlNode newChild)
Definition XmlNode.cs:739

References System.Xml.XmlNode.AppendChild(), System.Xml.Dictionary, System.Xml.XmlDataDocument.EnsureNonRowDocumentElement(), System.Xml.XmlDataDocument.FindAssociatedParentColumn(), System.Xml.XmlDataDocument.GetElementFromRow(), System.Xml.XmlDataDocument.GetNestedParent(), System.Xml.XmlDataDocument.GetNestedParentRelation(), System.Xml.XmlDataDocument.GetRowFromElement(), System.Convert.IsDBNull(), and System.value.

Referenced by System.Xml.XmlDataDocument.OnAddRow(), and System.Xml.XmlDataDocument.OnColumnValueChanged().