Refactor more mappers

This commit is contained in:
Stephan
2019-03-25 09:03:46 +01:00
parent 5bcafba34c
commit 92139dd0c9
20 changed files with 363 additions and 417 deletions

View File

@@ -17,18 +17,18 @@ namespace Umbraco.Web.Models.Mapping
public void SetMaps(Mapper mapper)
{
mapper.SetMap<ISection, Section>(source => new Section(), Map);
mapper.Define<ISection, Section>(source => new Section(), Map);
// this is for AutoMapper ReverseMap - but really?
mapper.SetMap<Section, ContentSection>();
mapper.SetMap<Section, ContentSection>();
mapper.SetMap<Section, ManifestSection>(Map);
mapper.SetMap<Section, MediaSection>();
mapper.SetMap<Section, MembersSection>();
mapper.SetMap<Section, PackagesSection>();
mapper.SetMap<Section, SettingsSection>();
mapper.SetMap<Section, TranslationSection>();
mapper.SetMap<Section, UsersSection>();
mapper.Define<Section, ContentSection>();
mapper.Define<Section, ContentSection>();
mapper.Define<Section, ManifestSection>(Map);
mapper.Define<Section, MediaSection>();
mapper.Define<Section, MembersSection>();
mapper.Define<Section, PackagesSection>();
mapper.Define<Section, SettingsSection>();
mapper.Define<Section, TranslationSection>();
mapper.Define<Section, UsersSection>();
}
// Umbraco.Code.MapAll -RoutePath