/// <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="id">Initial value of the Id property.</param> /// <param name="homePhone">Initial value of the HomePhone property.</param> /// <param name="celPhone">Initial value of the CelPhone property.</param> /// <param name="refPhone1">Initial value of the RefPhone1 property.</param> /// <param name="refPhone2">Initial value of the RefPhone2 property.</param> /// <param name="refContact1">Initial value of the RefContact1 property.</param> /// <param name="refContact2">Initial value of the RefContact2 property.</param> public static Contact CreateContact(global::System.Int32 id, global::System.String homePhone, global::System.String celPhone, global::System.String refPhone1, global::System.String refPhone2, global::System.String refContact1, global::System.String refContact2) { Contact contact = new Contact(); contact.Id = id; contact.HomePhone = homePhone; contact.CelPhone = celPhone; contact.RefPhone1 = refPhone1; contact.RefPhone2 = refPhone2; contact.RefContact1 = refContact1; contact.RefContact2 = refContact2; return contact; }