protected DataGettingEventArgs OnGetting(ICondition condition, string scope, Paging paging, Sorting[] sortings) { var args = new DataGettingEventArgs(this.Name, condition, scope, paging, sortings); this.OnGetting(args); return(args); }
protected DataGettingEventArgs <TEntity> OnGetting(ICondition condition, string scope) { var args = new DataGettingEventArgs <TEntity>(this.Name, condition, scope); this.OnGetting(args); return(args); }
protected virtual void OnGetting(DataGettingEventArgs args) { var e = this.Getting; if (e != null) { e(this, args); } }
protected virtual bool OnGetting(DataSelectionContext context) { var e = this.Getting; if (e == null) { return(false); } var args = new DataGettingEventArgs <TEntity>(context); e(this, args); return(args.Cancel); }