コード例 #1
0
		public static coreModel.Property ToCoreModel(this webModel.Property property)
		{
			var retVal = new coreModel.Property();
			retVal.InjectFrom(property);
			retVal.Value = property.Value;
			return retVal;
		}
コード例 #2
0
        public static coreModel.Property ToCoreModel(this webModel.Property property)
        {
            var retVal = new coreModel.Property();

            retVal.InjectFrom(property);
            retVal.Value = property.Value;
            return(retVal);
        }
コード例 #3
0
        public static coreModel.Property ToCoreModel(this dataModel.ContactPropertyValue 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;
        }
コード例 #4
0
        public static coreModel.Property ToCoreModel(this dataModel.ContactPropertyValue 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);
        }