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.
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
objectthecommonParamparses without issue.I take an anonymous type and cast it to an
objectthen send it as thecommonParamthen 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
ParamExtractorisn't getting GetProperties in the same way that native dapper does.