/// <summary> /// Deprecated Method for adding a new object to the Phones EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPhones(Phone phone) { base.AddObject("Phones", phone); }
/// <summary> /// Create a new Phone object. /// </summary> /// <param name="phoneID">Initial value of the PhoneID property.</param> /// <param name="phone1">Initial value of the Phone1 property.</param> /// <param name="phoneType">Initial value of the PhoneType property.</param> public static Phone CreatePhone(global::System.Int64 phoneID, global::System.String phone1, global::System.Int32 phoneType) { Phone phone = new Phone(); phone.PhoneID = phoneID; phone.Phone1 = phone1; phone.PhoneType = phoneType; return phone; }