示例#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);
 }
示例#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);
 }
示例#3
0
文件: Torque.cs 项目: AJassim/DOSB
 //
 // Attach a attachment to pressure test
 public void Attach(Attachment att)
 {
     if (this.TorqueId == 0)
     {
         return;
     }
     this.attachements.Add(att);
     storeDB.AddToAttachment(att);
 }
示例#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;
 }
示例#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);
 }