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; }
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); }
protected virtual Expression VisitQuerySource(QuerySourceExpression node) { return(base.VisitExtension(node)); }
protected virtual Expression VisitQuerySource(QuerySourceExpression node) { return base.VisitExtension(node); }