/// <summary> /// Deprecated Method for adding a new object to the Contacts EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToContacts(Contact contact) { base.AddObject("Contacts", contact); }
/// <summary> /// Create a new Contact object. /// </summary> /// <param name="contactID">Initial value of the ContactID property.</param> /// <param name="companyName">Initial value of the CompanyName property.</param> public static Contact CreateContact(global::System.Int32 contactID, global::System.String companyName) { Contact contact = new Contact(); contact.ContactID = contactID; contact.CompanyName = companyName; return contact; }