DapperLib / DapperLib/Dapper

IDataReader Complex Mapping

Open
#2,017 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
18.4k
Forks
3.7k
Avg merge
5h 8m
Merged PRs (30d)
1

Description

I followed your instructions for type switching per row but in my case I have a multiple result set where the subsequent result sets are all easy objects that do not require type switching.

I know I can read them in through the Parse functionality but then I lose out on the nice feature from GridReader for caching and quite a bit of the optimizations.

Is there any way I can transform the IDataReader to a GridReader after I have completed my type switching?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the IDataReader, GridReader, and Parse functionality mentioned in the issue to understand their supported transitions. Determine whether a completed type-switching reader can become a GridReader while preserving caching and optimizations for subsequent result sets; document the supported outcome or the required design.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.