2 instantiations of TextDataFeed
System.Data (2)
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (1)
857
return new
TextDataFeed
(_DbDataReaderRowSource.GetTextReader(sourceOrdinal));
fx\src\data\System\Data\SqlClient\SqlParameter.cs (1)
937
value = new
TextDataFeed
((TextReader)value);
14 references to TextDataFeed
System.Data (14)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (1)
240
if (value.GetType() == typeof(
TextDataFeed
))
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (2)
1633
case ExtendedClrTypeCode.TextReader: SetTextReader_Unchecked(sink, setters, ordinal, metaData, (
TextDataFeed
) value); break;
3251
private static void SetTextReader_Unchecked(SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metadata,
TextDataFeed
feed) {
fx\src\data\System\Data\SqlClient\SqlParameter.cs (3)
997
if (value is
TextDataFeed
) {
1000
int nRead = ((
TextDataFeed
)value)._source.ReadBlock(buffer, 0, Size);
1004
CoercedValue = ((
TextDataFeed
)value)._source.ReadToEnd();
fx\src\data\System\Data\SqlClient\TdsParser.cs (8)
9581
((metatype.SqlDbType == SqlDbType.VarChar || metatype.SqlDbType == SqlDbType.NVarChar) && value is
TextDataFeed
) ||
10405
private async Task WriteTextFeed(
TextDataFeed
feed, Encoding encoding, bool needBom, TdsParserStateObject stateObj, int size) {
10585
Debug.Assert(!isDataFeed || (value is
TextDataFeed
|| value is XmlDataFeed), "Value must be a TextReader or XmlReader");
10590
TextDataFeed
tdf = value as
TextDataFeed
;
10614
Debug.Assert(!isDataFeed || (value is
TextDataFeed
|| value is XmlDataFeed), "Value must be a TextReader or XmlReader");
10619
TextDataFeed
tdf = value as
TextDataFeed
;