/// <summary> /// Deprecated Method for adding a new object to the PhoneNumber EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPhoneNumber(PhoneNumber phoneNumber) { base.AddObject("PhoneNumber", phoneNumber); }
/// <summary> /// Create a new PhoneNumber object. /// </summary> /// <param name="phoneNumberID">Initial value of the PhoneNumberID property.</param> /// <param name="phoneNumberName">Initial value of the PhoneNumberName property.</param> public static PhoneNumber CreatePhoneNumber(global::System.Int32 phoneNumberID, global::System.String phoneNumberName) { PhoneNumber phoneNumber = new PhoneNumber(); phoneNumber.PhoneNumberID = phoneNumberID; phoneNumber.PhoneNumberName = phoneNumberName; return phoneNumber; }