private void FindAndAutoMapTypes(IMapperConfigurationExpression configuration) { var types = _typeFinder.Find(type => type.IsDefined(typeof(AutoMapAttribute)) || type.IsDefined(typeof(AutoMapFromAttribute)) || type.IsDefined(typeof(AutoMapToAttribute)) ); Logger.DebugFormat("Found {0} classes define auto mapping attributes", types.Length); foreach (var type in types) { Logger.Debug(type.FullName); configuration.CreateAbpAttributeMaps(type); } }
private void FindAndAutoMapTypes(IMapperConfigurationExpression configuration) { var types = _typeFinder.Find(type => type.IsDefined(typeof(AutoMapAttribute)) || type.IsDefined(typeof(AutoMapFromAttribute)) || type.IsDefined(typeof(AutoMapToAttribute)) ); Logger.DebugFormat("Found {0} classes defines auto mapping attributes", types.Length); foreach (var type in types) { Logger.Debug(type.FullName); configuration.CreateAbpAttributeMaps(type); } }