/// <summary> /// Deprecated Method for adding a new object to the PersonPhones EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPersonPhones(PersonPhone personPhone) { base.AddObject("PersonPhones", personPhone); }
/// <summary> /// Create a new PersonPhone object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="phone">Initial value of the Phone property.</param> /// <param name="phoneTypeId">Initial value of the PhoneTypeId property.</param> /// <param name="personId">Initial value of the PersonId property.</param> public static PersonPhone CreatePersonPhone(global::System.Int32 id, global::System.String phone, global::System.Int32 phoneTypeId, global::System.Int32 personId) { PersonPhone personPhone = new PersonPhone(); personPhone.Id = id; personPhone.Phone = phone; personPhone.PhoneTypeId = phoneTypeId; personPhone.PersonId = personId; return personPhone; }