Пример #1
0
        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>);
        }
Пример #2
0
        protected virtual void OnSelected(DataSelectedEventArgs args)
        {
            var e = this.Selected;

            if (e != null)
            {
                e(this, args);
            }
        }