public static bool IsMoving(this IContentBase entity) { // Check if this entity is being moved as a descendant as part of a bulk moving operations. // When this occurs, only Path + Level + UpdateDate are being changed. In this case we can bypass a lot of the below // operations which will make this whole operation go much faster. When moving we don't need to create // new versions, etc... because we cannot roll this operation back anyways. var isMoving = entity.IsPropertyDirty(nameof(entity.Path)) && entity.IsPropertyDirty(nameof(entity.Level)) && entity.IsPropertyDirty(nameof(entity.UpdateDate)); return(isMoving); }