SamSaffron/dapper-dot-net — pull request #67 by tms (2012-12-05 19:56:40+00:00)
Title: Loose typing for primitive value queries

Dapper now does loose type conversions when mapping to object fields, but the same behaviour isn't applied to primitive queries, i.e. `Query()`. Having this functionality would be useful for cases where it's not very easy to force the database driver to give you the specific return type you want, such as when your application supports multiple database backends and one of them is... *uncooperative*.

I quickly pulled (most of) the code used when mapping object fields into the deserializer for primitive values for use in Data Explorer, and it hasn't blown up yet, but it probably needs a look-over. It'd be nice to get this integrated though; Marc had indicated that the difference in behaviour here was likely not expected.