// // Delete a attachment to pressure test public void Detach(Attachment att) { if (this.PressureTestId == 0) { return; } this.attachements.Remove(att); storeDB.Attachment.DeleteObject(att); }
// // Attach a attachment to pressure test public void Attach(Attachment att) { if (this.PressureTestId == 0) { return; } this.attachements.Add(att); storeDB.AddToAttachment(att); }
// // Attach a attachment to pressure test public void Attach(Attachment att) { if (this.TorqueId == 0) { return; } this.attachements.Add(att); storeDB.AddToAttachment(att); }
/// <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; }
/// <summary> /// Deprecated Method for adding a new object to the Attachment EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAttachment(Attachment attachment) { base.AddObject("Attachment", attachment); }