Open GoogleCodeExporter opened 9 years ago
Thanks for providing a syntax that does work! (For the mean time..)
Original comment by jedidja...@gmail.com
on 26 Mar 2013 at 6:54
Is there any update on this? I have a situation where I have a dynamic number
of params so an ExpandoObject would be perfect - but even just being able to
use the DynamicParameter object would be fine. (Note: this issue only occurs
with collection/enumerable objects - I can use DynamicParameter quite happily
with simple object types).
Original comment by craig.wa...@xero.com
on 25 Feb 2014 at 8:49
Here is a workaround for you. I had the same exact problem and you can do like
this.
var parameters = new DynamicParameters();
parameters.AddDynamicParams(new { MyListParameter = myList });
Original comment by jussi.ha...@gmail.com
on 25 Feb 2014 at 8:57
That's not a workaround I can use - I don't know the parameters at compile time
- only at runtime.
Original comment by craig.wa...@xero.com
on 25 Feb 2014 at 9:03
Try this, it will work.
var parameters = new DynamicParameters();
parameters.AddDynamicParams(new Dictionary<string, object>() { {
"MyListParameter", myList } });
Original comment by jussi.ha...@gmail.com
on 25 Feb 2014 at 9:17
I meant it might work :)
Original comment by jussi.ha...@gmail.com
on 25 Feb 2014 at 9:18
Original issue reported on code.google.com by
jussi.ha...@gmail.com
on 27 Sep 2012 at 1:38