DapperLib / DapperLib/Dapper

Implement GetDynamicMemberNames on SqlMapper.DapperRowMetaObject

Open
#920 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:api up-for-grabs
Dominant language
C#
Stars
18.4k
Forks
3.7k
Avg merge
5h 8m
Merged PRs (30d)
1

Description

The dynamic member names are knowable on a DapperRow, certainly you can cast it to IDictionary<string,object> and call Keys.

However, since DapperRow is also a System.Dynamic.IDynamicMetaObjectProvider, It'd be nice if GetDynamicMemberNames would be implemented on SqlMapper.DapperRowMetaObject, so that it can be worked with generically with other non Dapper IDynamicMetaObjectProvider, (and have the members show up in the debugger for Dynamic View).

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 at SqlMapper.DapperRowMetaObject and inspect how its dynamic member lookup is implemented; compare the existing IDictionary<string,object> Keys behavior with System.Dynamic.IDynamicMetaObjectProvider expectations. Done means GetDynamicMemberNames is implemented and dynamic members appear in the debugger's Dynamic View, with the behavior verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.