Browse Source

VAutoMapper allow manual config and flush

HOME 3 years ago
parent
commit
ddbb97f10a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      VCommon.VAutoMapper/VAutoMapper.cs

+ 2 - 2
VCommon.VAutoMapper/VAutoMapper.cs

@@ -20,7 +20,7 @@ namespace VCommon.VAutoMapper
             FlushMapper();
         }
 
-        internal static void FlushMapper() => Config.FlushMapper();
+        public static void FlushMapper() => Config.FlushMapper();
 
         internal static void ConfigMapping(Type type)
         {
@@ -35,7 +35,7 @@ namespace VCommon.VAutoMapper
             }
         }
 
-        internal static void ConfigMapping(Type from, Type to)
+        public static void ConfigMapping(Type from, Type to)
         {
             var cfg = Config.CreateMap(from, to);