コード例 #1
0
 /// <summary>
 /// Create a new Attachment object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 /// <param name="content">Initial value of the Content property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="attachment_Project">Initial value of the Attachment_Project property.</param>
 public static Attachment CreateAttachment(global::System.Int32 id, global::System.Byte[] rowVersion, global::System.Byte[] content, global::System.String name, global::System.Int32 attachment_Project)
 {
     Attachment attachment = new Attachment();
     attachment.Id = id;
     attachment.RowVersion = rowVersion;
     attachment.Content = content;
     attachment.Name = name;
     attachment.Attachment_Project = attachment_Project;
     return attachment;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Attachments EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAttachments(Attachment attachment)
 {
     base.AddObject("Attachments", attachment);
 }