1 write to dataReader
System.Data (1)
fx\src\data\System\Data\XmlDataLoader.cs (1)
564dataReader = DataTextReader.CreateReader(reader);
95 references to dataReader
System.Data (95)
fx\src\data\System\Data\XmlDataLoader.cs (95)
546XmlNameTable nameTable = dataReader.NameTable; 566int entryDepth = dataReader.Depth; // Store current XML element depth so we'll read 573nodeToSchemaMap = isTableLevel ? new XmlToDatasetMap(dataReader.NameTable, dataTable) : 574new XmlToDatasetMap(dataReader.NameTable, dataSet); 598while( !dataReader.EOF ) { // Main XML parsing loop. Check for EOF just in case. 599if (dataReader.Depth < entryDepth) // Stop if we have consumed all elements allowed 603dataReader.Read(); 606DataTable table = nodeToSchemaMap.GetTableForNode(dataReader, FIgnoreNamespace(dataReader)); 611dataReader.Read(); // Not found? Read next element. 670int entryDepth = dataReader.Depth - 1; // Store current reader depth so we know when to stop reading 706while (entryDepth < dataReader.Depth ) { 707switch (dataReader.NodeType) { // Process nodes based on type 709object o = nodeToSchemaMap.GetColumnSchema(table, dataReader, FIgnoreNamespace(dataReader)); 723dataReader.Read(); // Advance to next element. 746dataReader.Read(); // Continue to the next element. 757textNodeValue = dataReader.ReadString(); 770dataReader.Read(); // We don't process that, skip to the next element. 775dataReader.Read(); // Proceed to the next element. 829int entryDepth = dataReader.Depth; // Store current reader depth so we know when to stop reading 848for ( int i = dataReader.AttributeCount -1; i >= 0; --i) { 850dataReader.MoveToAttribute(i); // Get this attribute 852c = nodeToSchemaMap.GetColumnSchema(table, dataReader, FIgnoreNamespace(dataReader)) as DataColumn; 858foundColumns[c.Ordinal] = c.ConvertXmlToObject(dataReader.Value); 877if ( dataReader.NamespaceURI == Keywords.DFFNS ) { 878switch (dataReader.LocalName) { 880diffId = dataReader.Value; // Store ID 883hasChanges = dataReader.Value; // Store value 886hasErrors = (bool)Convert.ChangeType(dataReader.Value, typeof(bool), CultureInfo.InvariantCulture); 891else if ( dataReader.NamespaceURI == Keywords.MSDNS ) { 892if ( dataReader.LocalName == Keywords.ROWORDER ) { 894rowOrder = (Int32)Convert.ChangeType(dataReader.Value, typeof(Int32), CultureInfo.InvariantCulture); 896} else if (dataReader.LocalName.StartsWith("hidden", StringComparison.Ordinal)) { 898c = collection[XmlConvert.DecodeName(dataReader.LocalName.Substring(6))]; 905foundColumns[c.Ordinal] = c.ConvertXmlToObject(dataReader.Value); 921if ( dataReader.Read() && entryDepth < dataReader.Depth) { 923while ( entryDepth < dataReader.Depth ) { // Get out as soon as we've processed all nested nodes. 924switch (dataReader.NodeType) { // Process nodes based on type 926object o = nodeToSchemaMap.GetColumnSchema(table, dataReader, FIgnoreNamespace(dataReader)); 938dataReader.Read(); // Advance to next element. 958DataTable misplacedTable = nodeToSchemaMap.GetTableForNode(dataReader, FIgnoreNamespace(dataReader)); 967dataReader.Read(); // Not a table? Try next element. 978textNodeValue = dataReader.ReadString(); 990dataReader.Read(); // We don't process that, skip to the next element. 995dataReader.Read(); // We're done here, proceed to the next element. 1084int entryDepth = dataReader.Depth; // Store depth so we won't read too much 1086if (dataReader.AttributeCount > 0) // If have attributes 1087xsiNilString = dataReader.GetAttribute(Keywords.XSI_NIL, Keywords.XSINS); 1098if (dataReader.AttributeCount > 0) { // If have attributes, get attributes we'll need 1099xsiTypeString = dataReader.GetAttribute(Keywords.TYPE, Keywords.XSINS); 1100typeName = dataReader.GetAttribute(Keywords.MSD_INSTANCETYPE, Keywords.MSDNS); 1123if ( !dataReader.IsEmptyElement ) // In case element is not empty 1124while (dataReader.Read() && (entryDepth < dataReader.Depth)); 1126dataReader.Read(); // And start reading next element. 1133dataReader.Read(); // if UDT is wrapped, skip the wrapper 1139xmlAttrib = new XmlRootAttribute(dataReader.LocalName); 1140xmlAttrib.Namespace = dataReader.NamespaceURI ; 1148columnValue = column.ConvertXmlToObject(dataReader, xmlAttrib); 1151dataReader.Read(); // if Wrapper is skipped, skip its end tag 1159if ( dataReader.Read() && entryDepth < dataReader.Depth) { 1161while (entryDepth < dataReader.Depth) { 1162switch (dataReader.NodeType) { // Process nodes based on type 1169text = dataReader.Value; // Get value. 1173while ( dataReader.Read() && entryDepth < dataReader.Depth && IsTextLikeNode(dataReader.NodeType)) { 1177builder.Append(dataReader.Value); // Concatenate other sequential text like 1188dataReader.ReadString(); // We've got column value already. Read this one and ignore it. 1200object o = nodeToSchemaMap.GetColumnSchema(column.Table, dataReader, FIgnoreNamespace(dataReader)); 1214dataReader.Read(); // Already loaded, proceed to the next element 1228DataTable misplacedTable = nodeToSchemaMap.GetTableForNode(dataReader, FIgnoreNamespace(dataReader)); 1237dataReader.Read(); // No match? Try next element 1246dataReader.Read(); // We don't process that, skip to the next element. 1252dataReader.Read(); // We're done here. To the next element. 1271if (((object)dataReader.LocalName == XSD_SCHEMA && (object)dataReader.NamespaceURI == XSDNS )) { 1274dataReader.Skip(); // Yes, skip it 1278dataTable.ReadXSDSchema(dataReader, false); // Invoke ReadXSDSchema on a table 1279nodeToSchemaMap = new XmlToDatasetMap(dataReader.NameTable, dataTable); 1282dataSet.ReadXSDSchema(dataReader, false); // Invoke ReadXSDSchema on a DataSet 1283nodeToSchemaMap = new XmlToDatasetMap(dataReader.NameTable, dataSet); 1287else if (((object)dataReader.LocalName == XDR_SCHEMA && (object)dataReader.NamespaceURI == XDRNS ) || 1288((object)dataReader.LocalName == SQL_SYNC && (object)dataReader.NamespaceURI == UPDGNS)) 1290dataReader.Skip(); // Skip XDR or SQL sync