private static void SetPropertyValue(dataModel.PropertyValue retVal, coreModel.PropertyValueType type, string value)
        {
            switch (type)
            {
            case coreModel.PropertyValueType.LongText:
                retVal.LongTextValue = value;
                break;

            case coreModel.PropertyValueType.ShortText:
                retVal.ShortTextValue = value;
                break;

            case coreModel.PropertyValueType.Number:
                decimal parsedDecimal;
                Decimal.TryParse(value.Replace(',', '.'), NumberStyles.Any, CultureInfo.InvariantCulture, out parsedDecimal);
                retVal.DecimalValue = parsedDecimal;
                break;

            case coreModel.PropertyValueType.DateTime:
                retVal.DateTimeValue = DateTime.Parse(value);
                break;

            case coreModel.PropertyValueType.Boolean:
                retVal.BooleanValue = Boolean.Parse(value);
                break;
            }
        }
        private static void SetPropertyValue(dataModel.PropertyValueBase retVal, coreModel.PropertyValueType type, string value)
        {
            switch (type)
            {
            case coreModel.PropertyValueType.LongText:
                retVal.LongTextValue = value;
                break;

            case coreModel.PropertyValueType.ShortText:
                retVal.ShortTextValue = value;
                break;

            case coreModel.PropertyValueType.Number:
                decimal parsedDecimal;
                Decimal.TryParse(value, out parsedDecimal);
                retVal.DecimalValue = parsedDecimal;
                break;

            case coreModel.PropertyValueType.DateTime:
                retVal.DateTimeValue = DateTime.Parse(value);
                break;

            case coreModel.PropertyValueType.Boolean:
                retVal.BooleanValue = Boolean.Parse(value);
                break;
            }
        }