Skip to content

Commit 453f8ce

Browse files
rojiRon Petrusha
authored andcommitted
Remove SqlClient-specific info from DbDataReader (#2345)
On exceptions thrown from DbDataReader.Get{Stream,TextReader}().
1 parent bdc5c7e commit 453f8ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.Data.Common/DbDataReader.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,7 +1759,7 @@ private static void GetCredits(String connectionString) {
17591759

17601760
There was an asynchronous operation in progress. This applies to all Get* methods when running in sequential mode, as they could be called while reading a stream.</exception>
17611761
<exception cref="T:System.IndexOutOfRangeException">Trying to read a column that does not exist.</exception>
1762-
<exception cref="T:System.InvalidCastException">The returned type was not one of the following types: binary, image, varbinary, or udt.</exception>
1762+
<exception cref="T:System.InvalidCastException">The specified column isn't a binary type that supports reading with a <see cref="T:System.IO.Stream" />.</exception>
17631763
</Docs>
17641764
</Member>
17651765
<Member MemberName="GetString">
@@ -1869,7 +1869,7 @@ private static void GetCredits(String connectionString) {
18691869

18701870
There was an asynchronous operation in progress. This applies to all Get* methods when running in sequential mode, as they could be called while reading a stream.</exception>
18711871
<exception cref="T:System.IndexOutOfRangeException">Trying to read a column that does not exist.</exception>
1872-
<exception cref="T:System.InvalidCastException">The returned type was not one of the following types: char, nchar, ntext, nvarchar, text, or varchar.</exception>
1872+
<exception cref="T:System.InvalidCastException">The specified column isn't a text type that supports reading with a <see cref="T:System.IO.TextReader" />.</exception>
18731873
</Docs>
18741874
</Member>
18751875
<Member MemberName="GetValue">

0 commit comments

Comments
 (0)