Inheritance: QueryExpression
示例#1
0
 public override bool TryWrapNode(Expression node, out QueryExpression wrapper)
 {
     var nodeAsConstantExpression = node as ConstantExpression;
     Type[] typeArgs;
     if (nodeAsConstantExpression != null
         && nodeAsConstantExpression.Type.TryExtractTypeArguments(typeof(IQueryable<>), out typeArgs))
     {
         wrapper = new QuerySourceExpression(nodeAsConstantExpression);
         return true;
     }
     wrapper = null;
     return false;
 }
示例#2
0
            public override bool TryWrapNode(Expression node, out QueryExpression wrapper)
            {
                var nodeAsConstantExpression = node as ConstantExpression;

                Type[] typeArgs;
                if (nodeAsConstantExpression != null &&
                    nodeAsConstantExpression.Type.TryExtractTypeArguments(typeof(IQueryable <>), out typeArgs))
                {
                    wrapper = new QuerySourceExpression(nodeAsConstantExpression);
                    return(true);
                }
                wrapper = null;
                return(false);
            }
示例#3
0
 protected virtual Expression VisitQuerySource(QuerySourceExpression node)
 {
     return(base.VisitExtension(node));
 }
示例#4
0
 protected virtual Expression VisitQuerySource(QuerySourceExpression node)
 {
     return base.VisitExtension(node);
 }