1
Vote

Mapping by Attribute

description

It would be nice to do mapping by attributes. You could create an MappingAnnotation assembly that would allow us to specify:
class SomeClass{
[Mapping(Name="TheSourceFieldName",TypeConversion="int=>decimal",NullConversion="-1")]
decimal SomePropertyName {get; set;}
}
 
I ended up inheriting a series of projects that have bidirectional mappings done by hand where fields are not named exactly the same.

comments