Cleanup variants dirty tracking

This commit is contained in:
Stephan
2018-10-23 15:04:41 +02:00
parent 9699e6cb71
commit 9320c1a061
30 changed files with 335 additions and 306 deletions

View File

@@ -1,6 +1,5 @@
using System;
using System.Runtime.Serialization;
using Umbraco.Core.Persistence.Mappers;
namespace Umbraco.Core.Models
{
@@ -21,8 +20,7 @@ namespace Umbraco.Core.Models
/// <param name="contentType">MediaType for the current Media object</param>
public Media(string name, IMedia parent, IMediaType contentType)
: this(name, parent, contentType, new PropertyCollection())
{
}
{ }
/// <summary>
/// Constructor for creating a Media object
@@ -45,8 +43,7 @@ namespace Umbraco.Core.Models
/// <param name="contentType">MediaType for the current Media object</param>
public Media(string name, int parentId, IMediaType contentType)
: this(name, parentId, contentType, new PropertyCollection())
{
}
{ }
/// <summary>
/// Constructor for creating a Media object
@@ -117,6 +114,5 @@ namespace Umbraco.Core.Models
//The Media Recycle Bin Id is -21 so we correct that here
ParentId = parentId == -20 ? -21 : parentId;
}
}
}