Exemplo n.º 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;
		}
Exemplo n.º 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);
        }
Exemplo n.º 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;
        }
Exemplo n.º 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);
        }