Moq.Dapper icon indicating copy to clipboard operation
Moq.Dapper copied to clipboard

Support DynamicParameters and Output Parameters

Open darthmolen opened this issue 5 years ago • 1 comments

Currently there is no support for Dynamic Parameters. Dapper uses a different code path for this object type over the anonymous object type. Additionally, it uses an outputCallback to fill in any parameters that are output types. Because there is no persistent mock for non-templated variables, each time Dapper tries to append a parameter to the query, it gets a new Parameters collection instead, causing an NRE. This needs to be solved for.

darthmolen avatar Jun 11 '19 13:06 darthmolen

Is there a workaround for this issue?

andresmoschini avatar Feb 16 '22 21:02 andresmoschini