PetaPoco
PetaPoco copied to clipboard
Add support for column value converters
Add attribute for custom column value converter. This is useful for storing .Net types to database, such as Image
as VARBINARY, Color
as INT32. For example:
[ImageValueConverter] public Image Icon { get; set; }
[ColorValueConverter] public Color ForeColor { get; set; }
This could be done by simple modification of ConventionMapper
default constructor and
abstract ValueConverterAttribute
.
See this gist for code example and usage.
Please assign it to me.