コード例 #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="contactID">Initial value of the ContactID property.</param>
 /// <param name="fullName">Initial value of the FullName property.</param>
 /// <param name="email">Initial value of the Email property.</param>
 /// <param name="phone">Initial value of the Phone property.</param>
 /// <param name="address">Initial value of the Address property.</param>
 /// <param name="title">Initial value of the Title property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="createDate">Initial value of the CreateDate property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 public static Contact CreateContact(global::System.Int32 contactID, global::System.String fullName, global::System.String email, global::System.String phone, global::System.String address, global::System.String title, global::System.String description, global::System.DateTime createDate, global::System.Int32 status)
 {
     Contact contact = new Contact();
     contact.ContactID = contactID;
     contact.FullName = fullName;
     contact.Email = email;
     contact.Phone = phone;
     contact.Address = address;
     contact.Title = title;
     contact.Description = description;
     contact.CreateDate = createDate;
     contact.Status = status;
     return contact;
 }