protected virtual void OnDeleted(DataDeletionContext context) { var e = this.Deleted; if (e != null) { e(this, new DataDeletedEventArgs(context)); } }
protected virtual bool OnDeleting(DataDeletionContext context) { var e = this.Deleting; if (e == null) { return(false); } var args = new DataDeletingEventArgs(context); e(this, args); return(args.Cancel); }
public DataDeletingEventArgs(DataDeletionContext context) : base(context) { _cancel = false; }
protected virtual void OnDeleted(DataDeletionContext context) { }