Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetTemplateParameter method in DynamicParameters #1861

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

QCplus
Copy link

@QCplus QCplus commented Dec 7, 2022

This pr is a proposition to resolve this problem

var parameters = DynamicParameters(new { p1 = 1)};
parameters.Get<int>("p1"); // KeyNotFoundException

I suppose, now there is no way to get a parameter value/name from an anonymous type

Some related issues #343, #1113

P.S. I've tried to change Get method, but tests fail then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant