Skip to content

GetFieldValue() should work with Stream/TextReader #2446

Description

@roji

As mentioned by @Wraith2, in SqlClient DbDataReader.GetFieldValue<T>() can be used to get a Stream or TextReader, exactly in the same way as currently returned by the dedicated GetStream() and GetTextReader() methods. We should implement this as well.

This has the advantage of also providing async column access via GetFieldValueAsync() without adding new GetStreamAsync() and GetTextReaderAsync().

Activity

  1. added this to the 4.1 milestone on Apr 18, 2019
  2. Wraith2 commented on Apr 19, 2019

    @Wraith2

    [Edit] Doh, wrong repo, meant to reply on corefx.

  3. self-assigned this
    on Aug 21, 2019
  4. modified the milestones: 4.1, 5.0 on Aug 26, 2019
  5. added a commit that references this issue on Sep 21, 2020
    19b1dfd
  6. added theissue type on Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions