private void detach_PhoneNumbers(PhoneNumber entity) { this.SendPropertyChanging(); entity.Contact = null; }
partial void DeletePhoneNumber(PhoneNumber instance);
partial void UpdatePhoneNumber(PhoneNumber instance);
partial void InsertPhoneNumber(PhoneNumber instance);
/// <summary> /// Create a new PhoneNumber object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="created_at">Initial value of the created_at property.</param> /// <param name="updated_at">Initial value of the updated_at property.</param> /// <param name="value">Initial value of the Value property.</param> /// <param name="type">Initial value of the Type property.</param> /// <param name="contact_id">Initial value of the Contact_id property.</param> public static PhoneNumber CreatePhoneNumber(global::System.Int32 id, global::System.DateTime created_at, global::System.DateTime updated_at, global::System.String value, global::System.String type, global::System.Int32 contact_id) { PhoneNumber phoneNumber = new PhoneNumber(); phoneNumber.Id = id; phoneNumber.created_at = created_at; phoneNumber.updated_at = updated_at; phoneNumber.Value = value; phoneNumber.Type = type; phoneNumber.Contact_id = contact_id; return phoneNumber; }
/// <summary> /// Deprecated Method for adding a new object to the PhoneNumbers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPhoneNumbers(PhoneNumber phoneNumber) { base.AddObject("PhoneNumbers", phoneNumber); }