0

Resolved

Custom mapper attribute

description

It should be possible to decorate business objects with Microdal attribut for custom initialization
F.ex.
[Microdal.Mapper(typeof(CustomObjectMapper))]
Where CustomObjectMapper implements IMapper.
public interface IMapper<T>{
T Map(DbDataReader);
}

comments

TheIMan wrote Sep 12, 2012 at 7:57 AM

This issue is implemented as a Method on the DataSession. It is now possible to bind a mapper across the application with a single call like this:

DataSession.Current.SetMapper(r => r.GetString(0))

wrote Sep 12, 2012 at 7:58 AM

wrote Feb 13, 2013 at 6:38 PM

wrote May 15, 2013 at 10:58 PM

wrote May 15, 2013 at 10:58 PM

wrote Jun 12, 2013 at 1:17 AM