Added a mapper for the IPropertyType (#14373)
This commit is contained in:
@@ -14,6 +14,7 @@ public class EntityMapDefinition : IMapDefinition
|
||||
public void DefineMaps(IUmbracoMapper mapper)
|
||||
{
|
||||
mapper.Define<IEntitySlim, EntityBasic>((source, context) => new EntityBasic(), Map);
|
||||
mapper.Define<IPropertyType, EntityBasic>((source, context) => new EntityBasic(), Map);
|
||||
mapper.Define<PropertyType, EntityBasic>((source, context) => new EntityBasic(), Map);
|
||||
mapper.Define<PropertyGroup, EntityBasic>((source, context) => new EntityBasic(), Map);
|
||||
mapper.Define<IUser, EntityBasic>((source, context) => new EntityBasic(), Map);
|
||||
@@ -77,7 +78,7 @@ public class EntityMapDefinition : IMapDefinition
|
||||
}
|
||||
|
||||
// Umbraco.Code.MapAll -Udi -Trashed
|
||||
private static void Map(PropertyType source, EntityBasic target, MapperContext context)
|
||||
private static void Map(IPropertyType source, EntityBasic target, MapperContext context)
|
||||
{
|
||||
target.Alias = source.Alias;
|
||||
target.Icon = "icon-box";
|
||||
|
||||
Reference in New Issue
Block a user