Example #1
0
        public static moduleModel.PropertyDictionaryValue ToModuleModel(this webModel.PropertyDictionaryValue propDictValue)
        {
            var retVal = new moduleModel.PropertyDictionaryValue();

            retVal.InjectFrom(propDictValue);
            return(retVal);
        }
        /// <summary>
        /// Converting to model type
        /// </summary>
        /// <param name="catalogBase"></param>
        /// <returns></returns>
        public static coreModel.PropertyDictionaryValue ToCoreModel(this dataModel.PropertyDictionaryValue dbPropDictValue)
        {
 			var retVal = new coreModel.PropertyDictionaryValue();
			retVal.InjectFrom(dbPropDictValue);

			retVal.LanguageCode = dbPropDictValue.Locale;
			retVal.Value = dbPropDictValue.Value;
		          
            return retVal;
        }
Example #3
0
        /// <summary>
        /// Converting to model type
        /// </summary>
        /// <param name="catalogBase"></param>
        /// <returns></returns>
        public static coreModel.PropertyDictionaryValue ToCoreModel(this dataModel.PropertyDictionaryValue dbPropDictValue)
        {
            var retVal = new coreModel.PropertyDictionaryValue();

            retVal.InjectFrom(dbPropDictValue);

            retVal.LanguageCode = dbPropDictValue.Locale;
            retVal.Value        = dbPropDictValue.Value;

            return(retVal);
        }
        /// <summary>
        /// Converting to model type
        /// </summary>
        /// <param name="catalogBase"></param>
        /// <returns></returns>
        public static coreModel.PropertyDictionaryValue ToCoreModel(this dataModel.PropertyValue dbPropValue, coreModel.Property property)
        {
            if (property == null)
                throw new ArgumentNullException("property");

			var retVal = new coreModel.PropertyDictionaryValue();
			retVal.InjectFrom(dbPropValue);

			retVal.LanguageCode = dbPropValue.Locale;
			retVal.Value = dbPropValue.ToString();
			retVal.PropertyId = property.Id;
			retVal.Property = property;
          
            return retVal;
        }
Example #5
0
        /// <summary>
        /// Converting to model type
        /// </summary>
        /// <param name="catalogBase"></param>
        /// <returns></returns>
        public static coreModel.PropertyDictionaryValue ToCoreModel(this dataModel.PropertyValue dbPropValue, coreModel.Property property)
        {
            if (property == null)
            {
                throw new ArgumentNullException("property");
            }

            var retVal = new coreModel.PropertyDictionaryValue();

            retVal.InjectFrom(dbPropValue);

            retVal.LanguageCode = dbPropValue.Locale;
            retVal.Value        = dbPropValue.ToString();
            retVal.PropertyId   = property.Id;
            retVal.Property     = property;

            return(retVal);
        }
		public static moduleModel.PropertyDictionaryValue ToModuleModel(this webModel.PropertyDictionaryValue propDictValue)
		{
			var retVal = new moduleModel.PropertyDictionaryValue();
			retVal.InjectFrom(propDictValue);
			return retVal;
		}