akautsar / dapper-dot-net

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

Enhancement to DynamicParameters.Add #158

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Issues seem to be created as type "Defect" by default, this is just a minor 
enhancement request.

It would be nice if the DynamicParameters.Add and .AddDynamicParams methods 
could be changed to "return this" instead of being void, so I can do the 
following:

    var params = new DynamicParameters(...)
       .Add("@a", direction:  ParameterDirection.Output)
       .Add("@b", direction: ParameterDirection.ReturnValue);
    ...

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

GoogleCodeExporter commented 8 years ago
We can't change the signature without breaking callers, so: sorry, can't do.

Original comment by marc.gravell on 6 Aug 2014 at 3:38