// Umbraco.Code.MapAll -ParentName -ChildName private static void Map(IRelation source, RelationDisplay target, MapperContext context) { target.ChildId = source.ChildId; target.Comment = source.Comment; target.CreateDate = source.CreateDate; target.ParentId = source.ParentId; }
// Umbraco.Code.MapAll -ParentName -ChildName private void Map(IRelation source, RelationDisplay target, MapperContext context) { target.ChildId = source.ChildId; target.Comment = source.Comment; target.CreateDate = source.CreateDate; target.ParentId = source.ParentId; var entities = _relationService.GetEntitiesFromRelation(source); target.ParentName = entities.Item1.Name; target.ChildName = entities.Item2.Name; }
// Umbraco.Code.MapAll -ParentName -ChildName private void Map(IRelation source, RelationDisplay target, MapperContext context) { target.ChildId = source.ChildId; target.Comment = source.Comment; target.CreateDate = source.CreateDate; target.ParentId = source.ParentId; Tuple <IUmbracoEntity, IUmbracoEntity>?entities = _relationService.GetEntitiesFromRelation(source); if (entities is not null) { target.ParentName = entities.Item1.Name; target.ChildName = entities.Item2.Name; } }