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