3 instantiations of XmlDataFeed
System.Data (3)
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (2)
862
return new
XmlDataFeed
(_SqlDataReaderRowSource.GetXmlReader(sourceOrdinal));
1436
value = new
XmlDataFeed
((XmlReader)value);
fx\src\data\System\Data\SqlClient\SqlParameter.cs (1)
923
value = new
XmlDataFeed
((XmlReader)value);
14 references to XmlDataFeed
System.Data (14)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (1)
365
if (value.GetType() == typeof(
XmlDataFeed
))
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (1)
1634
case ExtendedClrTypeCode.XmlReader: SetXmlReader_Unchecked(sink, setters, ordinal, ((
XmlDataFeed
) value)._source); break;
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (1)
1434
Debug.Assert((value is XmlReader) || (value is SqlCachedBuffer) || (value is string) || (value is SqlString) || (value is
XmlDataFeed
), "Invalid value type of Xml datatype");
fx\src\data\System\Data\SqlClient\SqlCommand.cs (2)
6252
if (value is
XmlDataFeed
&& requestMetaData[index].SqlDbType != SqlDbType.Xml) {
6253
value = MetaType.GetStringFromXml(((
XmlDataFeed
)value)._source);
fx\src\data\System\Data\SqlClient\SqlParameter.cs (2)
1034
if (value is
XmlDataFeed
) {
1035
CoercedValue = MetaType.GetStringFromXml(((
XmlDataFeed
)value)._source);
fx\src\data\System\Data\SqlClient\TdsParser.cs (7)
9582
(metatype.SqlDbType == SqlDbType.Xml && value is
XmlDataFeed
)),
9917
else if (currentType == typeof(
XmlDataFeed
)) {
10360
private async Task WriteXmlFeed(
XmlDataFeed
feed, TdsParserStateObject stateObj, bool needBom, Encoding encoding, int size) {
10585
Debug.Assert(!isDataFeed || (value is TextDataFeed || value is
XmlDataFeed
), "Value must be a TextReader or XmlReader");
10592
return NullIfCompletedWriteTask(WriteXmlFeed((
XmlDataFeed
)value, stateObj, needBom:true, encoding:_defaultEncoding, size:paramSize));
10614
Debug.Assert(!isDataFeed || (value is TextDataFeed || value is
XmlDataFeed
), "Value must be a TextReader or XmlReader");
10621
return NullIfCompletedWriteTask(WriteXmlFeed((
XmlDataFeed
)value, stateObj, IsBOMNeeded(type, value), Encoding.Unicode, paramSize));