/// <summary> /// Create a new Contact object. /// </summary> /// <param name="contactId">Initial value of the ContactId property.</param> /// <param name="email">Initial value of the Email property.</param> public static Contact CreateContact(global::System.Int32 contactId, global::System.String email) { Contact contact = new Contact(); contact.ContactId = contactId; contact.Email = email; return contact; }
/// <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); }