DataType refactoring preparation - Entity refactoring

This commit is contained in:
Stephan
2018-01-10 12:48:51 +01:00
parent 2cb6378c26
commit b5856803e1
236 changed files with 1872 additions and 1869 deletions

View File

@@ -8,19 +8,6 @@ namespace Umbraco.Web.Models.Mapping
/// </summary>
internal static class EntityProfileExtensions
{
/// <summary>
/// Ignores readonly properties and the date values
/// </summary>
/// <param name="mapping"></param>
/// <returns></returns>
public static IMappingExpression<TSource, TDest> IgnoreDeletableEntityCommonProperties<TSource, TDest>(this IMappingExpression<TSource, TDest> mapping)
where TDest: IDeletableEntity
{
return mapping
.IgnoreEntityCommonProperties()
.ForMember(dest => dest.DeletedDate, opt => opt.Ignore());
}
/// <summary>
/// Ignores readonly properties and the date values
/// </summary>
@@ -32,7 +19,8 @@ namespace Umbraco.Web.Models.Mapping
return mapping
.IgnoreAllPropertiesWithAnInaccessibleSetter()
.ForMember(dest => dest.CreateDate, opt => opt.Ignore())
.ForMember(dest => dest.UpdateDate, opt => opt.Ignore());
.ForMember(dest => dest.UpdateDate, opt => opt.Ignore())
.ForMember(dest => dest.DeleteDate, opt => opt.Ignore());
}
}
}