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

Unable to process private object commonParam #2

Open
BHare1985 opened this issue Jan 27, 2019 · 0 comments
Open

Unable to process private object commonParam #2

BHare1985 opened this issue Jan 27, 2019 · 0 comments
Assignees

Comments

@BHare1985
Copy link

I have a static private function inside a public class. In this private function I am defining an anonymous type to be the commonParam.

I have a dapper helper that takes parameters and casts them to objects before it sends it to BulkInsert


If using an anonymous type without the cast to object the commonParam parses without issue.

I take an anonymous type and cast it to an object then send it as the commonParam then they aren't included in the parameters.

If I make the function public instead of private, it works without issue.

I have to assume your ParamExtractor isn't getting GetProperties in the same way that native dapper does.

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

No branches or pull requests

2 participants