コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the contacts EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTocontacts(contact contact)
 {
     base.AddObject("contacts", contact);
 }
コード例 #2
0
 /// <summary>
 /// Create a new contact object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 public static contact Createcontact(global::System.Int32 id)
 {
     contact contact = new contact();
     contact.ID = id;
     return contact;
 }