public void OnColumnChanged(ContractBillColumn column, object value) { if (!base.SuppressEntityEvents) { ContractBillEventHandler columnChanged = this.ColumnChanged; if (columnChanged != null) { columnChanged(this, new ContractBillEventArgs(column, value)); } this.OnEntityChanged(); } }
public void OnColumnChanging(ContractBillColumn column, object value) { if (base.IsEntityTracked && (this.EntityState != EntityState.Added)) { EntityManager.StopTracking(this.EntityTrackingKey); } if (!base.SuppressEntityEvents) { ContractBillEventHandler columnChanging = this.ColumnChanging; if (columnChanging != null) { columnChanging(this, new ContractBillEventArgs(column, value)); } } }