DapperLib / DapperLib/Dapper

looping over dynamic parameters and getting parameter direction

Open
#1,829 0 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

We should be able to iterate over dynamic parameters where we can get its Dbtype, direction & size as well along with the name and value.

foreach (var name in parameters.ParameterNames)
{
var pValue = parameters.Get< dynamic >(name);
var pDirection =//getting direction
var DbType=//getting db type
var size=//getting size
}

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

The issue does not name a file or test. Start by reviewing Dapper's dynamic-parameter API, especially ParameterNames and Get(name), and determine where parameter metadata is represented. Done means callers can iterate parameters and obtain each name, value, DbType, direction, and size.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.