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