diff --git a/src/Umbraco.Core/Models/ContentBase.cs b/src/Umbraco.Core/Models/ContentBase.cs index ee4deeb96d..abac49248f 100644 --- a/src/Umbraco.Core/Models/ContentBase.cs +++ b/src/Umbraco.Core/Models/ContentBase.cs @@ -309,6 +309,17 @@ namespace Umbraco.Core.Models SetValueOnProperty(propertyTypeAlias, value); } + /// + /// Sets the value of a Property + /// + /// Alias of the PropertyType + /// Value to set for the Property + public virtual void SetPropertyValue(string propertyTypeAlias, long value) + { + string val = value.ToString(); + SetValueOnProperty(propertyTypeAlias, val); + } + /// /// Sets the value of a Property ///