In the past, I used PetaPoco, decorating my objects with attributes [Column("{column name")]
and so on. However, I am trying to implement a βpureβ domain model that does not know constancy and therefore does not know the attributes of PetaPoco.
The PetaPoco blog mentions that there is an interface IMapper
("New Mapper API") that must be implemented to display objects in their tables without decorating the object class. However, neither the blog post nor the source code actually explains what the implementation should do IMapper
.
If I just want to map my domain entities to the specific names of tables, primary keys and columns, do I need to implement IMapper
and how can I do this?
source
share