public virtual void Patch(AttachmentEntity target)
 {
     target.Url      = Url;
     target.Name     = Name;
     target.MimeType = MimeType;
     target.Size     = Size;
 }
		public static dataModel.AttachmentEntity ToDataModel(this coreModel.QuoteAttachment attachment)
		{
			if (attachment == null)
				throw new ArgumentNullException("attachment");

			var retVal = new dataModel.AttachmentEntity();
			retVal.InjectFrom(attachment);

			return retVal;
		}
Esempio n. 3
0
        public static dataModel.AttachmentEntity ToDataModel(this coreModel.QuoteAttachment attachment)
        {
            if (attachment == null)
            {
                throw new ArgumentNullException("attachment");
            }

            var retVal = new dataModel.AttachmentEntity();

            retVal.InjectFrom(attachment);

            return(retVal);
        }
Esempio n. 4
0
        public static coreModel.QuoteAttachment ToCoreModel(this dataModel.AttachmentEntity dbEntity)
        {
            if (dbEntity == null)
            {
                throw new ArgumentNullException("dbEntity");
            }

            var retVal = new coreModel.QuoteAttachment();

            retVal.InjectFrom(dbEntity);

            return(retVal);
        }