Beispiel #1
0
        public static coreModel.Property ToCoreModel(this webModel.Property property)
        {
            var retVal = new coreModel.Property();

            retVal.InjectFrom(property);
            return(retVal);
        }
		public static coreModel.Property ToCoreModel(this dataModel.DynamicContentItemProperty entity)
		{
			if (entity == null)
				throw new ArgumentNullException("entity");

			var retVal = new coreModel.Property();
			retVal.InjectFrom(entity);
			retVal.ValueType = (coreModel.PropertyValueType)entity.ValueType;
			retVal.Value = GetPropertyValue(entity);

			return retVal;
		}
Beispiel #3
0
        public static coreModel.Property ToCoreModel(this dataModel.DynamicContentItemProperty entity)
        {
            if (entity == null)
            {
                throw new ArgumentNullException("entity");
            }

            var retVal = new coreModel.Property();

            retVal.InjectFrom(entity);
            retVal.ValueType = (coreModel.PropertyValueType)entity.ValueType;
            retVal.Value     = GetPropertyValue(entity);

            return(retVal);
        }
		public static coreModel.Property ToCoreModel(this webModel.Property property)
		{
			var retVal = new coreModel.Property();
			retVal.InjectFrom(property);
			return retVal;
		}