66 references to ElementState
System.Data.Common (66)
System\Xml\DataPointer.cs (2)
848
ElementState
state = rowElem.ElementState;
849
Debug.Assert(state ==
ElementState
.Defoliated, "Region is accessed using column, but it's state is FOLIATED");
System\Xml\DataSetMappper.cs (1)
243
if (rowElem.ElementState ==
ElementState
.Defoliated)
System\Xml\RegionIterator.cs (18)
36
ElementState
oldState = _rowElement.ElementState;
39
Debug.Assert(oldState !=
ElementState
.None);
50
Debug.Assert((oldState ==
ElementState
.Defoliated) ? (_rowElement.ElementState ==
ElementState
.Defoliated) : true);
69
ElementState
oldState = _rowElement.ElementState;
72
Debug.Assert(oldState !=
ElementState
.None);
80
Debug.Assert((oldState ==
ElementState
.Defoliated) ? (_rowElement.ElementState ==
ElementState
.Defoliated) : true);
98
Debug.Assert((oldState ==
ElementState
.Defoliated) ? (_rowElement.ElementState ==
ElementState
.Defoliated) : true);
109
Debug.Assert((oldState ==
ElementState
.Defoliated) ? (_rowElement.ElementState ==
ElementState
.Defoliated) : true);
135
ElementState
oldState = _rowElement.ElementState;
138
Debug.Assert(oldState !=
ElementState
.None);
145
Debug.Assert((oldState ==
ElementState
.Defoliated) ? (_rowElement.ElementState ==
ElementState
.Defoliated) : true);
155
Debug.Assert((oldState ==
ElementState
.Defoliated) ? (_rowElement.ElementState ==
ElementState
.Defoliated) : true);
System\Xml\XmlBoundElement.cs (10)
28
private
ElementState
_state;
32
_state =
ElementState
.None;
186
while (_state ==
ElementState
.Foliating || _state ==
ElementState
.Defoliating)
192
return _state !=
ElementState
.Defoliated;
196
internal
ElementState
ElementState
202
internal void Foliate(
ElementState
newState)
218
ElementState
oldAutoFoliationState = doc.AutoFoliationState;
219
doc.AutoFoliationState =
ElementState
.WeakFoliation;
223
Foliate(
ElementState
.WeakFoliation);
System\Xml\XmlDataDocument.cs (33)
40
private
ElementState
_autoFoliationState; // When XmlBoundElement will foliate because of member functions, this will contain the foliation mode: usually this is
120
if (r != null && be.ElementState ==
ElementState
.Defoliated)
129
be.ElementState =
ElementState
.WeakFoliation;
157
if (r != null && be.ElementState ==
ElementState
.Defoliated)
169
be.ElementState =
ElementState
.WeakFoliation;
185
internal
ElementState
AutoFoliationState
407
if (rowElem.ElementState !=
ElementState
.WeakFoliation)
418
rowElem.ElementState =
ElementState
.Defoliating;
448
rowElem.ElementState =
ElementState
.Defoliated;
573
internal void Foliate(XmlBoundElement node,
ElementState
newState)
575
Debug.Assert(newState ==
ElementState
.WeakFoliation || newState ==
ElementState
.StrongFoliation);
581
if (newState ==
ElementState
.StrongFoliation && node.Row == null)
584
ElementState
rowElemState =
ElementState
.None;
588
Debug.Assert(rowElemState ==
ElementState
.StrongFoliation || rowElemState ==
ElementState
.WeakFoliation);
601
if (node.ElementState ==
ElementState
.Defoliated)
605
else if (node.ElementState ==
ElementState
.WeakFoliation && newState ==
ElementState
.StrongFoliation)
617
((XmlBoundElement)element).Foliate(
ElementState
.WeakFoliation);
638
private void EnsureFoliation(XmlBoundElement rowElem,
ElementState
foliation)
645
private void ForceFoliation(XmlBoundElement node,
ElementState
newState)
649
if (node.ElementState !=
ElementState
.Defoliated)
657
node.ElementState =
ElementState
.Foliating;
1201
_autoFoliationState =
ElementState
.StrongFoliation;
1301
if (be.ElementState ==
ElementState
.None)
1302
be.ElementState =
ElementState
.WeakFoliation;
1363
rowElement.ElementState =
ElementState
.Defoliated;
1415
ForceFoliation(rowElement,
ElementState
.WeakFoliation);
2605
_autoFoliationState =
ElementState
.StrongFoliation;
2837
EnsureFoliation(rowElem,
ElementState
.WeakFoliation);
2842
EnsureFoliation(rowElem,
ElementState
.WeakFoliation);
System\Xml\XPathNodePointer.cs (2)
401
if (curBoundElem.ElementState ==
ElementState
.Defoliated)
1243
_doc.Foliate(rowElem,
ElementState
.StrongFoliation);