CreateMap

entry point for bulding a type converter configuration

Members

Classes

ConvertUsing
class ConvertUsing(alias Delegate)

Templates

ConvertUsing
template ConvertUsing(Type)

Examples

import automapper;
import std.datetime : SysTime;

static class A {
    long timestamp;
}

static class B {
    SysTime timestamp;
}

MapperConfiguration!(
    CreateMap!(long, SysTime)
        .ConvertUsing!((long ts) => SysTime(ts)),
    CreateMap!(A, B))
        .createMapper();

Meta