/// <summary> /// Create a new Contact object. /// </summary> /// <param name="contactID">Initial value of the ContactID property.</param> /// <param name="firstName">Initial value of the FirstName property.</param> /// <param name="lastName">Initial value of the LastName property.</param> /// <param name="addDate">Initial value of the AddDate property.</param> /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param> public static Contact CreateContact(global::System.Int32 contactID, global::System.String firstName, global::System.String lastName, global::System.DateTime addDate, global::System.DateTime modifiedDate) { Contact contact = new Contact(); contact.ContactID = contactID; contact.FirstName = firstName; contact.LastName = lastName; contact.AddDate = addDate; contact.ModifiedDate = modifiedDate; 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); }