예제 #1
0
        public TResult Execute <TResult>(Expression expression)
        {
            if (expression == null)
            {
                throw new ArgumentNullException(nameof(expression));
            }

            ExpressionValidator.Validate(expression);
            return(this.ExecuteOverride <TResult>(expression));
        }
예제 #2
0
        public IQueryable <TElement> CreateQuery <TElement>(Expression expression)
        {
            if (expression == null)
            {
                throw new ArgumentNullException(nameof(expression));
            }

            ExpressionValidator.Validate(expression);
            return(this.CreateQueryOverride <TElement>(expression));
        }