Ejemplo n.º 1
0
 public AttachmentClass(ATTACHMENTS attachment)
 {
     id   = attachment.ATTACH_ID;
     name = attachment.ATTACH_FILENAME;
     type = getType();
     size = getSize(attachment.ATTACHMENT);
 }
Ejemplo n.º 2
0
 internal void Update(Part part)
 {
     lock (MUTEX)
     {
         this._list(part).Clear();
         foreach (AttachNode an in part.attachNodes)
         {
             ATTACHMENTS._list(part).Add(Attachment_t.From(an));
         }
     }
 }
Ejemplo n.º 3
0
        private void Add(int message_id, AttachmentClass attach)
        {

            using (Entities e = new Entities())
            {
                ATTACHMENTS _attach = attach.GetAttahmentDB();
                _attach.MESSAGE_ID = message_id;
                e.ATTACHMENTS.Add(_attach);
                e.SaveChanges();
            }

        }