From 09d038fcde1ac897be4d138ad849e7bbc120c90c Mon Sep 17 00:00:00 2001 From: Chad Rosenthal Date: Sat, 23 Jan 2016 21:32:08 -0700 Subject: [PATCH] U4-4652 - added decimal/double to contentbase --- src/Umbraco.Core/Models/ContentBase.cs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/Umbraco.Core/Models/ContentBase.cs b/src/Umbraco.Core/Models/ContentBase.cs index 6beead06e6..5d0ac28779 100644 --- a/src/Umbraco.Core/Models/ContentBase.cs +++ b/src/Umbraco.Core/Models/ContentBase.cs @@ -371,6 +371,30 @@ namespace Umbraco.Core.Models SetValueOnProperty(propertyTypeAlias, val); } + /// + /// Sets the value of a Property + /// + /// Alias of the PropertyType + /// Value to set for the Property + public virtual void SetPropertyValue(string propertyTypeAlias, decimal value) + { + string val = value.ToString(); + SetValueOnProperty(propertyTypeAlias, val); + } + + /// + /// Sets the value of a Property + /// + /// Alias of the PropertyType + /// Value to set for the Property + public virtual void SetPropertyValue(string propertyTypeAlias, double value) + { + string val = value.ToString(); + SetValueOnProperty(propertyTypeAlias, val); + } + + + /// /// Sets the value of a Property ///