Beispiel #1
0
 /// <summary>
 /// Scan the QM for all header functions.
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public static IEnumerable<QMFuncHeader> FindQMFunctions(QueryModel model)
 {
     var qmf = new QMFuncVisitor();
     qmf.VisitQueryModel(model);
     var funcs = qmf.FoundFunctions;
     DumpFuncs(funcs);
     return funcs;
 }
Beispiel #2
0
        /// <summary>
        /// Scan the QM for all header functions.
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static IEnumerable <QMFuncHeader> FindQMFunctions(QueryModel model)
        {
            var qmf = new QMFuncVisitor();

            qmf.VisitQueryModel(model);
            var funcs = qmf.FoundFunctions;

            DumpFuncs(funcs);
            return(funcs);
        }
Beispiel #3
0
 /// <summary>
 /// We are going after a query model - bounce this back up a level.
 /// </summary>
 /// <param name="expression"></param>
 /// <returns></returns>
 protected override System.Linq.Expressions.Expression VisitSubQuery(Remotion.Linq.Clauses.Expressions.SubQueryExpression expression)
 {
     _qmVisitor.VisitQueryModel(expression.QueryModel);
     return(expression);
 }