SamSaffron/dapper-dot-net — pull request #46 by arinet-chaudhry (2012-08-08 20:50:38+00:00)
Title: Type converters

Support for registering type converters to support scenarios like the following:

```c#
// The model
[Serializable]
public class Activity
{
public Secured Id { get; set; }
public string Name { get; set; }
}

// The converter
public class SecuredIntDapperConverter : IDapperConverter
{
public object Convert(object source)
{
if (source is int)
return new Secured((int)source);

return source;
}
}

// The converter registration
DapperConverters.Add(typeof(Secured), new SecuredIntDapperConverter());

// The query
var results = connection.Query("Activity_All", commandType: CommandType.StoredProcedure);
```