DataType refactoring preparation - Entity refactoring

This commit is contained in:
Stephan
2018-01-15 11:32:30 +01:00
parent 988aa661ea
commit d23933a5b1
213 changed files with 2149 additions and 2478 deletions

View File

@@ -1,4 +1,4 @@
using Umbraco.Core.Models.EntityBase;
using Umbraco.Core.Models.Entities;
namespace Umbraco.Core.Models
{
@@ -14,10 +14,9 @@ namespace Umbraco.Core.Models
/// This is useful when handling events to determine if an entity is a brand new entity or was
/// already existing.
/// </remarks>
public static bool IsNewEntity(this IEntity entity)
public static bool IsNewEntity(this IRememberBeingDirty entity)
{
var dirty = (IRememberBeingDirty) entity;
return dirty.WasPropertyDirty("Id");
return entity.WasPropertyDirty("Id");
}
}
}