コード例 #1
0
 public MapperConfiguration(MapperConfigurationExpression configurationExpression)
     : this(configurationExpression, MapperRegistry.Mappers)
 {
 }
コード例 #2
0
ファイル: Mapper.cs プロジェクト: zzms/AutoMapper
 /// <summary>
 /// Initialize static configuration instance
 /// </summary>
 /// <param name="config">Configuration action</param>
 public static void Initialize(MapperConfigurationExpression config)
 {
     Configuration = new MapperConfiguration(config);
     Instance      = new Mapper(Configuration);
 }
コード例 #3
0
 public ConfigurationValidator(IConfigurationProvider config, MapperConfigurationExpression expression)
 {
     _validators = expression.Advanced.GetValidators();
     _config     = config;
     _expression = expression;
 }
コード例 #4
0
 public MapperConfigurationExpressionValidator(MapperConfigurationExpression expression)
 {
     _expression = expression;
 }