Ejemplo n.º 1
0
 //
 // Delete a attachment to pressure test
 public void Detach(Attachment att)
 {
     if (this.PressureTestId == 0)
     {
         return;
     }
     this.attachements.Remove(att);
     storeDB.Attachment.DeleteObject(att);
 }
Ejemplo n.º 2
0
 //
 // Attach a attachment to pressure test
 public void Attach(Attachment att)
 {
     if (this.PressureTestId == 0)
     {
         return;
     }
     this.attachements.Add(att);
     storeDB.AddToAttachment(att);
 }
Ejemplo n.º 3
0
 //
 // Attach a attachment to pressure test
 public void Attach(Attachment att)
 {
     if (this.TorqueId == 0)
     {
         return;
     }
     this.attachements.Add(att);
     storeDB.AddToAttachment(att);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Create a new Attachment object.
 /// </summary>
 /// <param name="attachmentId">Initial value of the AttachmentId property.</param>
 public static Attachment CreateAttachment(global::System.Int32 attachmentId)
 {
     Attachment attachment = new Attachment();
     attachment.AttachmentId = attachmentId;
     return attachment;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Attachment EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAttachment(Attachment attachment)
 {
     base.AddObject("Attachment", attachment);
 }