Skip to content

Unable to process private object commonParam #2

Description

@BHare1985

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions