/// <summary> /// Raises the <see cref="ColumnChanged" /> event. /// </summary> /// <param name="column">The <see cref="MercLocationColumn"/> which has raised the event.</param> /// <param name="value">The changed value.</param> public virtual void OnColumnChanged(MercLocationColumn column, object value) { if (!SuppressEntityEvents) { MercLocationEventHandler handler = ColumnChanged; if (handler != null) { handler(this, new MercLocationEventArgs(column, value)); } // warn the parent list that i have changed OnEntityChanged(); } }
/// <summary> /// Raises the <see cref="ColumnChanging" /> event. /// </summary> /// <param name="column">The <see cref="MercLocationColumn"/> which has raised the event.</param> /// <param name="value">The changed value.</param> public virtual void OnColumnChanging(MercLocationColumn column, object value) { if (IsEntityTracked && EntityState != EntityState.Added && !EntityManager.TrackChangedEntities) { EntityManager.StopTracking(entityTrackingKey); } if (!SuppressEntityEvents) { MercLocationEventHandler handler = ColumnChanging; if (handler != null) { handler(this, new MercLocationEventArgs(column, value)); } } }