/// <summary>
        /// Register Emeraude administration mapping configuration.
        /// </summary>
        /// <param name="configuration"></param>
        /// <returns></returns>
        public static IMapperConfigurationExpression AddAdminMapperConfiguration(this IMapperConfigurationExpression configuration)
        {
            configuration.AddMaps("Definux.Emeraude.Admin");
            configuration.AddMaps("Definux.Emeraude.Admin.UI");
            configuration.AddMaps("Definux.Emeraude.Admin.ClientBuilder");

            return(configuration);
        }
Exemple #2
0
        private static void RegisterMappings(IMapperConfigurationExpression configure)
        {
            configure.AddMaps(typeof(AutoMapperCreator).Assembly);                 // Dynamically load all configurations

            // ...or do it manually below. Example: https://github.com/AutoMapper/AutoMapper/wiki/Configuration
            // ...or see examples in Profiles directory.
        }
Exemple #3
0
 public static IMapperConfigurationExpression AddTopoMojoMaps(
     this IMapperConfigurationExpression cfg
     )
 {
     cfg.AddMaps(Assembly.GetExecutingAssembly());
     return(cfg);
 }
        public static void Configure(IMapperConfigurationExpression config)
        {
            config.AddMaps(Assembly.GetExecutingAssembly());

            config.SourceMemberNamingConvention      = new PascalCaseNamingConvention();
            config.DestinationMemberNamingConvention = new PascalCaseNamingConvention();
        }
 internal static void ConfigAction(
     this Container c,
     IMapperConfigurationExpression cfg,
     AutoMapperSimpleInjectorConfiguration serviceCfg)
 {
     serviceCfg.MapperConfigurationExpressionAction.Invoke(
         c,
         cfg);
     cfg.ConstructServicesUsing(c.GetInstance);
     cfg.AddMaps(serviceCfg.AssembliesToScan);
 }
        public static void ConfigureMapper(this IMapperConfigurationExpression config)
        {
            config.AddMaps(Assembly.GetExecutingAssembly());

            config.SourceMemberNamingConvention      = new PascalCaseNamingConvention();
            config.DestinationMemberNamingConvention = new PascalCaseNamingConvention();

            config.ReplaceMemberName("FromName", "ToName");

            config.RecognizePrefixes("Prefix", "Pre");
            config.RecognizeDestinationPostfixes("Postfix");
        }
Exemple #7
0
 private void RegisterMappers(IMapperConfigurationExpression configurationExpression)
 {
     configurationExpression.AddMaps(_assembliesToScan);
 }