コード例 #1
0
ファイル: AskrindoModel.Designer.cs プロジェクト: ryanask/MRK
 /// <summary>
 /// Create a new MitigationAttachment object.
 /// </summary>
 /// <param name="attachId">Initial value of the AttachId property.</param>
 /// <param name="mitigationId">Initial value of the MitigationId property.</param>
 /// <param name="attachName">Initial value of the AttachName property.</param>
 /// <param name="filename">Initial value of the Filename property.</param>
 /// <param name="contentType">Initial value of the ContentType property.</param>
 /// <param name="data">Initial value of the Data property.</param>
 public static MitigationAttachment CreateMitigationAttachment(global::System.Int32 attachId, global::System.Int32 mitigationId, global::System.String attachName, global::System.String filename, global::System.String contentType, global::System.Byte[] data)
 {
     MitigationAttachment mitigationAttachment = new MitigationAttachment();
     mitigationAttachment.AttachId = attachId;
     mitigationAttachment.MitigationId = mitigationId;
     mitigationAttachment.AttachName = attachName;
     mitigationAttachment.Filename = filename;
     mitigationAttachment.ContentType = contentType;
     mitigationAttachment.Data = data;
     return mitigationAttachment;
 }
コード例 #2
0
ファイル: AskrindoModel.Designer.cs プロジェクト: ryanask/MRK
 /// <summary>
 /// Deprecated Method for adding a new object to the MitigationAttachments EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMitigationAttachments(MitigationAttachment mitigationAttachment)
 {
     base.AddObject("MitigationAttachments", mitigationAttachment);
 }