1 write to _dataReader
System.Data.Common (1)
System\Data\XmlDataLoader.cs (1)
589_dataReader = DataTextReader.CreateReader(reader);
95 references to _dataReader
System.Data.Common (95)
System\Data\XmlDataLoader.cs (95)
568XmlNameTable nameTable = _dataReader!.NameTable; 591int entryDepth = _dataReader.Depth; // Store current XML element depth so we'll read 598_nodeToSchemaMap ??= _isTableLevel ? new XmlToDatasetMap(_dataReader.NameTable, _dataTable!) : 599new XmlToDatasetMap(_dataReader.NameTable, _dataSet!); 626while (!_dataReader.EOF) 628if (_dataReader.Depth < entryDepth) // Stop if we have consumed all elements allowed 633_dataReader.Read(); 636DataTable? table = _nodeToSchemaMap.GetTableForNode(_dataReader, FIgnoreNamespace(_dataReader)); 641_dataReader.Read(); // Not found? Read next element. 704int entryDepth = _dataReader!.Depth - 1; // Store current reader depth so we know when to stop reading 742while (entryDepth < _dataReader.Depth) 744switch (_dataReader.NodeType) 747object? o = _nodeToSchemaMap!.GetColumnSchema(table, _dataReader, FIgnoreNamespace(_dataReader)); 763_dataReader.Read(); // Advance to next element. 791_dataReader.Read(); // Continue to the next element. 802textNodeValue = _dataReader.ReadString(); 816_dataReader.Read(); // We don't process that, skip to the next element. 821_dataReader.Read(); // Proceed to the next element. 881int entryDepth = _dataReader!.Depth; // Store current reader depth so we know when to stop reading 900for (int i = _dataReader.AttributeCount - 1; i >= 0; --i) 903_dataReader.MoveToAttribute(i); // Get this attribute 905c = _nodeToSchemaMap!.GetColumnSchema(table, _dataReader, FIgnoreNamespace(_dataReader)) as DataColumn; 912foundColumns[c.Ordinal] = c.ConvertXmlToObject(_dataReader.Value); 917if (_dataReader.NamespaceURI == Keywords.DFFNS) 919switch (_dataReader.LocalName) 922diffId = _dataReader.Value; // Store ID 925hasChanges = _dataReader.Value; // Store value 928hasErrors = (bool)Convert.ChangeType(_dataReader.Value, typeof(bool), CultureInfo.InvariantCulture); 933else if (_dataReader.NamespaceURI == Keywords.MSDNS) 935if (_dataReader.LocalName == Keywords.ROWORDER) 938rowOrder = (int)Convert.ChangeType(_dataReader.Value, typeof(int), CultureInfo.InvariantCulture); 941else if (_dataReader.LocalName.StartsWith("hidden", StringComparison.Ordinal)) 944c = collection[XmlConvert.DecodeName(_dataReader.LocalName.Substring(6))]; 952foundColumns[c.Ordinal] = c.ConvertXmlToObject(_dataReader.Value); 968if (_dataReader.Read() && entryDepth < _dataReader.Depth) 971while (entryDepth < _dataReader.Depth) 973switch (_dataReader.NodeType) 976object? o = _nodeToSchemaMap!.GetColumnSchema(table, _dataReader, FIgnoreNamespace(_dataReader)); 991_dataReader.Read(); // Advance to next element. 1015DataTable? misplacedTable = _nodeToSchemaMap.GetTableForNode(_dataReader, FIgnoreNamespace(_dataReader)); 1026_dataReader.Read(); // Not a table? Try next element. 1037textNodeValue = _dataReader.ReadString(); 1050_dataReader.Read(); // We don't process that, skip to the next element. 1055_dataReader.Read(); // We're done here, proceed to the next element. 1152int entryDepth = _dataReader!.Depth; // Store depth so we won't read too much 1154if (_dataReader.AttributeCount > 0) // If have attributes 1155xsiNilString = _dataReader.GetAttribute(Keywords.XSI_NIL, Keywords.XSINS); 1167if (_dataReader.AttributeCount > 0) 1169xsiTypeString = _dataReader.GetAttribute(Keywords.TYPE, Keywords.XSINS); 1170typeName = _dataReader.GetAttribute(Keywords.MSD_INSTANCETYPE, Keywords.MSDNS); 1197if (!_dataReader.IsEmptyElement) // In case element is not empty 1198while (_dataReader.Read() && (entryDepth < _dataReader.Depth)) ; 1200_dataReader.Read(); // And start reading next element. 1208_dataReader.Read(); // if UDT is wrapped, skip the wrapper 1216xmlAttrib = new XmlRootAttribute(_dataReader.LocalName); 1217xmlAttrib.Namespace = _dataReader.NamespaceURI; 1226columnValue = column.ConvertXmlToObject(_dataReader, xmlAttrib); 1230_dataReader.Read(); // if Wrapper is skipped, skip its end tag 1238if (_dataReader.Read() && entryDepth < _dataReader.Depth) 1241while (entryDepth < _dataReader.Depth) 1243switch (_dataReader.NodeType) 1251text = _dataReader.Value; // Get value. 1255while (_dataReader.Read() && entryDepth < _dataReader.Depth && IsTextLikeNode(_dataReader.NodeType)) 1258builder.Append(_dataReader.Value); // Concatenate other sequential text like 1271_dataReader.ReadString(); // We've got column value already. Read this one and ignore it. 1285object? o = _nodeToSchemaMap!.GetColumnSchema(column.Table!, _dataReader, FIgnoreNamespace(_dataReader)); 1301_dataReader.Read(); // Already loaded, proceed to the next element 1318DataTable? misplacedTable = _nodeToSchemaMap.GetTableForNode(_dataReader, FIgnoreNamespace(_dataReader)); 1329_dataReader.Read(); // No match? Try next element 1338_dataReader.Read(); // We don't process that, skip to the next element. 1343_dataReader.Read(); // We're done here. To the next element. 1365if (((object)_dataReader!.LocalName == _XSD_SCHEMA && (object)_dataReader.NamespaceURI == _XSDNS)) 1370_dataReader.Skip(); // Yes, skip it 1376_dataTable!.ReadXSDSchema(_dataReader); // Invoke ReadXSDSchema on a table 1377_nodeToSchemaMap = new XmlToDatasetMap(_dataReader.NameTable, _dataTable); 1381_dataSet!.ReadXSDSchema(_dataReader); // Invoke ReadXSDSchema on a DataSet 1382_nodeToSchemaMap = new XmlToDatasetMap(_dataReader.NameTable, _dataSet); 1386else if (((object)_dataReader.LocalName == _XDR_SCHEMA && (object)_dataReader.NamespaceURI == _XDRNS) || 1387((object)_dataReader.LocalName == _SQL_SYNC && (object)_dataReader.NamespaceURI == _UPDGNS)) 1389_dataReader.Skip(); // Skip XDR or SQL sync