public virtual void Patch(AttachmentEntity target)
 {
     target.Url      = Url;
     target.Name     = Name;
     target.MimeType = MimeType;
     target.Size     = Size;
 }
Exemplo n.º 2
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;
		}
Exemplo 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);
        }
Exemplo 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);
        }