protected IEnumerable <TEntity> OnSelected(Type entityType, ICondition condition, Grouping grouping, string scope, Paging paging, Sorting[] sortings, IEnumerable <TEntity> result) { var args = new DataSelectedEventArgs(this.Name, entityType, condition, grouping, scope, paging, sortings, result); this.OnSelected(args); return(args.Result as IEnumerable <TEntity>); }
protected virtual void OnSelected(DataSelectedEventArgs args) { var e = this.Selected; if (e != null) { e(this, args); } }