Updating MediaRepository to not create versions for Media, and ensuring that properties are properly updated.

This commit is contained in:
Morten Christensen
2012-12-17 14:00:46 -01:00
parent 4d5d556e64
commit 9bf45d6031
3 changed files with 37 additions and 16 deletions

View File

@@ -108,15 +108,5 @@ namespace Umbraco.Core.Models
if (Key == Guid.Empty)
Key = Guid.NewGuid();
}
/// <summary>
/// Method to call when Entity is being updated
/// </summary>
/// <remarks>Modified Date is set and a new Version guid is set</remarks>
internal override void UpdatingEntity()
{
base.UpdatingEntity();
Version = Guid.NewGuid();
}
}
}