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