Exemplo n.º 1
0
 public static void AddCustomMappingProfile(this IMapperConfigurationExpression config)
 {
     config.AddCustomMappingProfile(Assembly.GetEntryAssembly());
 }
Exemplo n.º 2
0
        public static void AddCustomMappingProfile(this IMapperConfigurationExpression config)
        {
            var repositoriesAssembly = typeof(BannerDto).Assembly;

            config.AddCustomMappingProfile(repositoriesAssembly);
        }
Exemplo n.º 3
0
        public static void AddCustomMappingProfile(this IMapperConfigurationExpression config)
        {
            var viewModelsAssembly = typeof(IHaveCustomMapping).Assembly;

            config.AddCustomMappingProfile(Assembly.GetEntryAssembly(), viewModelsAssembly);
        }
 public static void AddCustomMappingProfile(this IMapperConfigurationExpression config)
 {
     // Assembly.GetEntryAssembly() اون اسمبلی ک اجرا میشه یعنی myapi
     config.AddCustomMappingProfile(Assembly.GetEntryAssembly());
 }