6 instantiations of XmlBoundElement
System.Data.Common (6)
System\Xml\XmlDataDocument.cs (6)
354
return new
XmlBoundElement
(prefix, localName, namespaceURI, this);
379
return new
XmlBoundElement
(prefix, localName, namespaceURI, this);
467
docelem = new
XmlBoundElement
(string.Empty, docElemName, DataSet.Namespace ?? string.Empty, this);
689
newNode = new
XmlBoundElement
(string.Empty, col.EncodedColumnName, col.Namespace, this);
1360
XmlBoundElement rowElement = new
XmlBoundElement
(string.Empty, table.EncodedTableName, table.Namespace, this);
1555
var newElem = new
XmlBoundElement
(string.Empty, col.EncodedColumnName, col.Namespace, this);
155 references to XmlBoundElement
System.Data.Common (155)
System\Data\DataRow.cs (2)
53
internal
XmlBoundElement
? Element
55
get { return (
XmlBoundElement
?)_element; }
System\Xml\BaseTreeIterator.cs (1)
58
return CurrentNode is
XmlBoundElement
be && be.Row != null;
System\Xml\DataPointer.cs (8)
46
private
XmlBoundElement
? GetRowElement()
48
XmlBoundElement
? rowElem;
51
rowElem = _node as
XmlBoundElement
;
65
XmlBoundElement
? rowElem = GetRowElement();
77
node != null && node is
XmlBoundElement
?
78
((
XmlBoundElement
)node).IsFoliated : true;
842
XmlBoundElement
? rowElem = _node as
XmlBoundElement
;
System\Xml\DataSetMappper.cs (14)
87
internal DataTable? SearchMatchingTableSchema(
XmlBoundElement
? rowElem,
XmlBoundElement
elem)
149
internal DataColumn? GetColumnSchemaForNode(
XmlBoundElement
rowElem, XmlNode node)
153
Debug.Assert((node is
XmlBoundElement
) ? ((
XmlBoundElement
)node).Row == null : true);
186
XmlBoundElement
? be = elem as
XmlBoundElement
;
195
internal static DataTable? GetTableSchemaForElement(
XmlBoundElement
be) => be.Row?.Table;
205
internal static DataRow? GetRowFromElement(XmlElement? e) => (e as
XmlBoundElement
)?.Row;
207
internal static DataRow? GetRowFromElement(
XmlBoundElement
be) => be.Row;
212
internal static bool GetRegion(XmlNode? node, [NotNullWhen(true)] out
XmlBoundElement
? rowElem)
216
XmlBoundElement
? be = node as
XmlBoundElement
;
238
internal bool IsRegionRadical(
XmlBoundElement
rowElem)
System\Xml\RegionIterator.cs (2)
20
private readonly
XmlBoundElement
_rowElement;
23
internal RegionIterator(
XmlBoundElement
rowElement) : base(((XmlDataDocument)(rowElement.OwnerDocument)).Mapper)
System\Xml\XmlBoundElement.cs (5)
73
XmlBoundElement
? parent = ParentNode as
XmlBoundElement
;
93
XmlBoundElement
? parent = ParentNode as
XmlBoundElement
;
227
Debug.Assert(element is
XmlBoundElement
);
System\Xml\XmlDataDocument.cs (89)
116
XmlBoundElement
? be = node as
XmlBoundElement
;
149
XmlBoundElement
? be;
232
internal void Bind(DataRow r,
XmlBoundElement
e)
373
XmlBoundElement
? be = row.Element;
399
private void DefoliateRegion(
XmlBoundElement
rowElem)
430
XmlBoundElement
? be = node as
XmlBoundElement
;
444
Debug.Assert((node is
XmlBoundElement
) && (((
XmlBoundElement
)node).Row != null));
573
internal void Foliate(
XmlBoundElement
node, ElementState newState)
583
XmlBoundElement
? rowElem;
616
if (element is
XmlBoundElement
)
617
((
XmlBoundElement
)element).Foliate(ElementState.WeakFoliation);
638
private void EnsureFoliation(
XmlBoundElement
rowElem, ElementState foliation)
645
private void ForceFoliation(
XmlBoundElement
node, ElementState newState)
745
private XmlNode? GetColumnInsertAfterLocation(DataColumn col,
XmlBoundElement
rowElement)
879
XmlBoundElement
? be = r.Element;
925
if (element is
XmlBoundElement
)
927
return ((
XmlBoundElement
)element).IsFoliated;
932
private bool IsFoliated(
XmlBoundElement
be)
1287
private void LoadRows(
XmlBoundElement
? rowElem, XmlNode node)
1291
XmlBoundElement
? be = node as
XmlBoundElement
;
1355
private
XmlBoundElement
AttachBoundElementToDataRow(DataRow row)
1360
XmlBoundElement
rowElement = new XmlBoundElement(string.Empty, table.EncodedTableName, table.Namespace, this);
1382
XmlBoundElement
rowElement = (
XmlBoundElement
)(GetElementFromRow(row));
1404
private void OnColumnValueChanged(DataRow row, DataColumn col,
XmlBoundElement
rowElement)
1520
XmlBoundElement
? be = e as
XmlBoundElement
;
1555
var
newElem = new XmlBoundElement(string.Empty, col.EncodedColumnName, col.Namespace, this);
1604
XmlBoundElement
? be = row.Element;
1620
private void OnColumnValuesChanged(DataRow row,
XmlBoundElement
rowElement)
1648
private void OnDeleteRow(
XmlBoundElement
rowElement)
1661
private void OnDeletingRow(
XmlBoundElement
rowElement)
1722
private void OnNestedParentChange(DataRow child,
XmlBoundElement
childElement, DataColumn? childCol)
1792
XmlBoundElement
? rowElement = null;
1926
XmlBoundElement
? oldRowElem;
1933
XmlBoundElement
? rowElem = node as
XmlBoundElement
;
1939
rowElem = (
XmlBoundElement
)(iter.CurrentNode!);
1950
XmlBoundElement
? oldRowElem;
1963
XmlBoundElement
? be = node as
XmlBoundElement
;
1975
XmlBoundElement
rowElemChild = (
XmlBoundElement
)(iter.CurrentNode!);
1996
XmlBoundElement
? rowElement = row.Element;
2279
XmlBoundElement
? parentRegionRowElem;
2286
Debug.Assert(iter.CurrentNode is
XmlBoundElement
&& ((
XmlBoundElement
)(iter.CurrentNode)).Row != null);
2287
XmlBoundElement
rowElemChild = (
XmlBoundElement
)(iter.CurrentNode);
2349
XmlBoundElement
? be = n as
XmlBoundElement
;
2359
XmlBoundElement
? be = n as
XmlBoundElement
;
2369
XmlBoundElement
? be = n as
XmlBoundElement
;
2409
private void SynchronizeRowFromRowElement(
XmlBoundElement
rowElement)
2416
private void SynchronizeRowFromRowElement(
XmlBoundElement
rowElement, ArrayList? rowElemList)
2454
private void SynchronizeRowFromRowElementEx(
XmlBoundElement
rowElement, ArrayList? rowElemList)
2493
XmlBoundElement
? be = e as
XmlBoundElement
;
2552
private void UpdateAllColumns(DataRow row,
XmlBoundElement
rowElement)
2670
XmlBoundElement
? be;
2694
Debug.Assert(rowElemList[0] != null && rowElemList[0] is
XmlBoundElement
);
2695
XmlBoundElement
? subRowElem = (
XmlBoundElement
?)(rowElemList[0]);
2708
XmlBoundElement
? be;
2723
Debug.Assert(rowElemList[0] != null && rowElemList[0] is
XmlBoundElement
);
2724
XmlBoundElement
subRowElem = (
XmlBoundElement
)(rowElemList[0]!);
2743
private void OnRowElementInsertedInTree(
XmlBoundElement
rowElem, ArrayList rowElemList)
2805
private void EnsureDisconnectedDataRow(
XmlBoundElement
rowElem)
2857
private void OnNonRowElementInsertedInTree(XmlNode node,
XmlBoundElement
rowElement, ArrayList rowElemList)
2873
private void OnNonRowElementInsertedInFragment(
XmlBoundElement
rowElement, ArrayList rowElemList)
2887
private void SetNestedParentRegion(
XmlBoundElement
childRowElem)
2891
XmlBoundElement
? parentRowElem;
2896
private void SetNestedParentRegion(
XmlBoundElement
childRowElem,
XmlBoundElement
? parentRowElem)
2961
XmlBoundElement
? be = node.ParentNode as
XmlBoundElement
;
2983
XmlBoundElement
? rowElement = node as
XmlBoundElement
;
2989
rowElement = iter.CurrentNode as
XmlBoundElement
;
3006
XmlBoundElement
? rowElement = node as
XmlBoundElement
;
3012
rowElement = iter.CurrentNode as
XmlBoundElement
;
System\Xml\XPathNodePointer.cs (34)
20
internal
XmlBoundElement
? _parentOfNS;
105
private XPathNodePointer(DataDocumentXPathNavigator owner, XmlDataDocument doc, XmlNode node, DataColumn? c, bool bOnValue,
XmlBoundElement
? parentOfNS)
394
XmlBoundElement
? curBoundElem;
398
curBoundElem = curNode as
XmlBoundElement
;
432
private
XmlBoundElement
? GetRowElement()
434
XmlBoundElement
? rowElem;
437
rowElem = (
XmlBoundElement
)_node;
451
XmlBoundElement
? rowElem = GetRowElement();
496
if (node != null && node is
XmlBoundElement
)
497
return ((
XmlBoundElement
)node).IsFoliated;
819
if (!IsFoliated(parent) && (parent is
XmlBoundElement
))
821
DataRow? row = ((
XmlBoundElement
)parent).Row;
855
if (!IsFoliated(parent) && (parent is
XmlBoundElement
))
856
curRow = ((
XmlBoundElement
)parent).Row;
1238
XmlBoundElement
? rowElem = GetRowElement();
1324
private string? GetNamespace(
XmlBoundElement
be, string name)
1386
retVal = GetNamespace((
XmlBoundElement
)node, name!);
1399
_parentOfNS = _node as
XmlBoundElement
;
1406
XmlBoundElement
? be;
1410
be = node as
XmlBoundElement
;
1455
private bool MoveToNextNamespace(
XmlBoundElement
? be, DataColumn? col, XmlAttribute? curAttr)
1512
_parentOfNS = _node as
XmlBoundElement
;
1517
XmlBoundElement
? be;
1520
be = node as
XmlBoundElement
;
1546
private bool DuplicateNS(
XmlBoundElement
endElem, string lname)
1550
XmlBoundElement
? be = _parentOfNS;
1561
be = node as
XmlBoundElement
;
1580
XmlBoundElement
? be = _node as
XmlBoundElement
;
1612
if (MoveToNextNamespace((
XmlBoundElement
)node, null, attr))
1626
XmlBoundElement
? be = node as
XmlBoundElement
;
1653
XmlBoundElement
? rowElem = _node as
XmlBoundElement
;