Exemplo n.º 1
0
 private bool VisitSortClauseList(IList <DbSortClause> list)
 {
     return(Sql8ConformanceChecker.VisitList <DbSortClause>(new Sql8ConformanceChecker.ListElementHandler <DbSortClause>(this.VisitSortClause), list));
 }
Exemplo n.º 2
0
 private bool VisitExpressionList(IList <DbExpression> list)
 {
     return(Sql8ConformanceChecker.VisitList <DbExpression>(new Sql8ConformanceChecker.ListElementHandler <DbExpression>(this.VisitExpression), list));
 }
Exemplo n.º 3
0
        internal static bool NeedsRewrite(DbExpression expr)
        {
            Sql8ConformanceChecker conformanceChecker = new Sql8ConformanceChecker();

            return(expr.Accept <bool>((DbExpressionVisitor <bool>)conformanceChecker));
        }
Exemplo n.º 4
0
 private bool VisitAggregateList(IList <DbAggregate> list)
 {
     return(Sql8ConformanceChecker.VisitList <DbAggregate>(new Sql8ConformanceChecker.ListElementHandler <DbAggregate>(this.VisitAggregate), list));
 }
Exemplo n.º 5
0
        /// <summary>
        ///     The entry point
        /// </summary>
        /// <param name="expr"> </param>
        /// <returns> True if the tree needs to be rewriten, false otherwise </returns>
        internal static bool NeedsRewrite(DbExpression expr)
        {
            var checker = new Sql8ConformanceChecker();

            return(expr.Accept(checker));
        }