This commit is contained in:
Stephan
2017-09-23 10:08:18 +02:00
parent c1e2625de0
commit 5ba2ffcbf3
224 changed files with 709 additions and 709 deletions

View File

@@ -28,7 +28,7 @@ namespace Umbraco.Web.Models.Mapping
.IgnoreEntityCommonProperties()
.ForMember(dest => dest.Id, map => map.Condition(src => src.Id > 0))
.ForMember(dest => dest.Key, map => map.Ignore())
.ForMember(dest => dest.HasIdentity, map => map.Ignore())
.ForMember(dest => dest.HasIdentity, map => map.Ignore())
.ForMember(dest => dest.DeletedDate, map => map.Ignore())
.ForMember(dest => dest.PropertyTypes, map => map.Ignore());
}
@@ -164,7 +164,7 @@ namespace Umbraco.Web.Models.Mapping
.ForMember(dest => dest.Id, opt => opt.MapFrom(src => Convert.ToInt32(src.Id)))
//These get persisted as part of the saving procedure, nothing to do with the display model
.IgnoreDeletableEntityCommonProperties()
.IgnoreDeletableEntityCommonProperties()
.ForMember(dest => dest.AllowedAsRoot, opt => opt.MapFrom(src => src.AllowAsRoot))
.ForMember(dest => dest.CreatorId, opt => opt.Ignore())

View File

@@ -1,4 +1,4 @@
using AutoMapper;
using AutoMapper;
using Umbraco.Core.Models.EntityBase;
namespace Umbraco.Web.Models.Mapping
@@ -35,4 +35,4 @@ namespace Umbraco.Web.Models.Mapping
.ForMember(dest => dest.UpdateDate, opt => opt.Ignore());
}
}
}
}

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using AutoMapper;
@@ -101,9 +101,9 @@ namespace Umbraco.Web.Models.Mapping
}
//now add the user props
contentProps.AddRange(currProps);
contentProps.AddRange(currProps);
//callback
//callback
onGenericPropertiesMapped?.Invoke(contentProps);
//re-assign
@@ -166,7 +166,7 @@ namespace Umbraco.Web.Models.Mapping
var listViewConfig = editor.PreValueEditor.ConvertDbToEditor(editor.DefaultPreValues, preVals);
//add the entity type to the config
listViewConfig["entityType"] = entityType;
listViewConfig["entityType"] = entityType;
//Override Tab Label if tabName is provided
if (listViewConfig.ContainsKey("tabName"))
@@ -174,7 +174,7 @@ namespace Umbraco.Web.Models.Mapping
var configTabName = listViewConfig["tabName"];
if (configTabName != null && string.IsNullOrWhiteSpace(configTabName.ToString()) == false)
listViewTab.Label = configTabName.ToString();
}
}
var listViewProperties = new List<ContentPropertyDisplay>();
listViewProperties.Add(new ContentPropertyDisplay

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
@@ -51,4 +51,4 @@ namespace Umbraco.Web.Models.Mapping
return result;
}
}
}
}