示例#1
0
 public void Configure(IMapperConfigurationExpression mapper)
 {
     mapper.AddModule <Service.Config.AutoMapperModule>();
     mapper.AddProfile(this);
 }
示例#2
0
 public static void AddModule <TModule>(this IMapperConfigurationExpression mapper)
     where TModule : IAutoMapperModule, new()
 {
     mapper.AddModule(new TModule());
 }