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; }
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); }
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); }