/// <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="lastName">Initial value of the LastName property.</param> /// <param name="firstName">Initial value of the FirstName property.</param> /// <param name="clientID">Initial value of the ClientID property.</param> /// <param name="createdDate">Initial value of the CreatedDate property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> public static Contact CreateContact(global::System.Int32 contactID, global::System.String lastName, global::System.String firstName, global::System.Int32 clientID, global::System.DateTime createdDate, global::System.String createdBy) { Contact contact = new Contact(); contact.ContactID = contactID; contact.LastName = lastName; contact.FirstName = firstName; contact.ClientID = clientID; contact.CreatedDate = createdDate; contact.CreatedBy = createdBy; return contact; }