dhruvsheth37 / dapper-dot-net

Automatically exported from code.google.com/p/dapper-dot-net
Other
0 stars 1 forks source link

Add DynamicParameters.AddDynamicParams overloads #160

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The method: 

    DynamicParameters.AddDynamicParams(dynamic param)

handles param differently if it is itself either a DynamicParams or a 
dictionary (IEnumerable<KeyValuePair<string,object>>).

This behavior is not very discoverable for uses of the binary version.  I think 
it would be better to have overloads:

    AddDynamicParams(DynamicParams dynamicParams)

    AddDynamicParams(IEnumerable<KeyValuePair<string,object>>)

Original issue reported on code.google.com by Jocular...@hotmail.com on 18 Oct 2013 at 1:17