コード例 #1
0
        private void ThrowSkippedExceptionIfQueryExpressionNotSupported(QueryExpression expression)
        {
            // Uri will always work, Client linq has cases where it will not
            if (!this.IsUri)
            {
                ODataUriToClientLinqReplacingVisitor visitor = new ODataUriToClientLinqReplacingVisitor();
                visitor.ReplaceExpression(expression);

                if (visitor.InvalidClientQuery == true)
                {
                    throw new TestSkippedException(string.Format(CultureInfo.InvariantCulture, "Invalid Query '{0}', query not supported using Linq to Astoria client", expression.ToString()));
                }
            }
        }
コード例 #2
0
        private void ThrowSkippedExceptionIfQueryExpressionNotSupported(QueryExpression expression)
        {
            QueryCustomFunctionCallExpression customFunctionCallExpression = expression as QueryCustomFunctionCallExpression;

            if (!this.IsExecuteURI && customFunctionCallExpression != null)
            {
                throw new TestSkippedException(string.Format(CultureInfo.InvariantCulture, "Invalid Query '{0}', operation query not supported through DataServiceQuery", expression.ToString()));
            }

            // Uri will always work, Client linq has cases where it will not
            ODataUriToClientLinqReplacingVisitor visitor = new ODataUriToClientLinqReplacingVisitor();

            visitor.ReplaceExpression(expression);

            if (visitor.InvalidClientQuery == true)
            {
                throw new TestSkippedException(string.Format(CultureInfo.InvariantCulture, "Invalid Query '{0}', query not supported using Linq to Astoria client", expression.ToString()));
            }
        }
コード例 #3
0
        private void ThrowSkippedExceptionIfQueryExpressionNotSupported(QueryExpression expression)
        {
            // Uri will always work, Client linq has cases where it will not
            if (!this.IsUri)
            {
                ODataUriToClientLinqReplacingVisitor visitor = new ODataUriToClientLinqReplacingVisitor();
                visitor.ReplaceExpression(expression);

                if (visitor.InvalidClientQuery == true)
                {
                    throw new TestSkippedException(string.Format(CultureInfo.InvariantCulture, "Invalid Query '{0}', query not supported using Linq to Astoria client", expression.ToString()));
                }
            }
        }
コード例 #4
0
        private void ThrowSkippedExceptionIfQueryExpressionNotSupported(QueryExpression expression)
        {
            QueryCustomFunctionCallExpression customFunctionCallExpression = expression as QueryCustomFunctionCallExpression;
            if (!this.IsExecuteURI && customFunctionCallExpression != null)
            {
                throw new TestSkippedException(string.Format(CultureInfo.InvariantCulture, "Invalid Query '{0}', operation query not supported through DataServiceQuery", expression.ToString()));
            }

            // Uri will always work, Client linq has cases where it will not
            ODataUriToClientLinqReplacingVisitor visitor = new ODataUriToClientLinqReplacingVisitor();
            visitor.ReplaceExpression(expression);

            if (visitor.InvalidClientQuery == true)
            {
                throw new TestSkippedException(string.Format(CultureInfo.InvariantCulture, "Invalid Query '{0}', query not supported using Linq to Astoria client", expression.ToString()));
            }
        }