SamSaffron/dapper-dot-net — pull request #100 by BlackjacketMack (2013-10-27 22:28:25+00:00)
Title: Added support for ICustomQueryParameters to be members of a dictionary t...

...hat can then be passed into a new DynamicParameters object.

Generally, working with an IDictionary and DynamicParameters has worked well, either through construction of DynamicParameters or the 'Add' method (such as new DynamiceParameters(). However, when one of the entries in the dictionary is an ICustomQueryParameter, it would blow up in the SqlMapper.LookupDbType method. This allows parameters that are part of a dictionary to simply call 'AddParameter' passing in the command and name and having them function as expected.

(My apologies regarding the file diff on line 3613...I can't seem to get the correct carriage return so that it appears unchanged.)