SamSaffron/dapper-dot-net — pull request #32 by brannon (2012-04-18 21:54:24+00:00)
Title: Add support for dictionaries/expandos to DynamicParameters + Refactoring

This pull request contains 3 small changes:

9993204f89a20bf131ece28841bfbae75ebb554a

Minor refactoring of the type deserializer. I'm working on adding support for type coercions and this change simplified the IL gen code. I plan to submit a pull request for that work when I'm finished.

63062d96aeeb009e15ee176c73e8b34b1eb75e12

This is a simple change that supports associating a default transaction with a command. See the test cases for an example. I prefer this type of implicit transaction management to the explicit form that requires you to pass the (connection,transaction) pair everywhere. The change should be harmless and unblocks my particular scenario.

081799e678bc7b44d0daec9aac8c40ad53e4e6d3

I added support for dictionaries to the DynamicParameters class. I had a use case where I didn't have a concrete type (the source of the parameter values was dynamic, but I couldn't add a reference to Dapper and use IDynamicParameters directly).