コード例 #1
0
 /// <summary>
 /// Create a new ContactDetail object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="contactName">Initial value of the ContactName property.</param>
 public static ContactDetail CreateContactDetail(global::System.Guid id, global::System.String contactName)
 {
     ContactDetail contactDetail = new ContactDetail();
     contactDetail.Id = id;
     contactDetail.ContactName = contactName;
     return contactDetail;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ContactDetails EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToContactDetails(ContactDetail contactDetail)
 {
     base.AddObject("ContactDetails", contactDetail);
 }