コード例 #1
0
 private static IEnumerable <XmlToCursorData> GetXmlToCursorsThatHaveNestedProperties(VfpExpression expression)
 {
     return(XmlToCursorExpressionGatherer.Gather(expression)
            .Select(x => new XmlToCursorData(x))
            .Where(x => x.TableProperty != null)
            .Where(x => x.TableProperty.Instance is VfpPropertyExpression)
            .Select(x => x));
 }
コード例 #2
0
 private IEnumerable <XmlToCursorData> GetXmlToCursors(VfpExpression expression)
 {
     return(XmlToCursorExpressionGatherer.Gather(expression)
            .Where(x => !x.CursorName.StartsWith(XmlToCursorMoveToInnerExpressionRewriter.CursorNamePrefix))                              // TODO:  figure out how to rewrite these as inner joins
            .Select(x => new XmlToCursorData(x))
            .Where(x => x.TableProperty != null)
            .Select(x => x).ToList().AsReadOnly());
 }
コード例 #3
0
            public static IEnumerable <XmlToCursorExpression> Gather(Expression expression)
            {
                var gatherer = new XmlToCursorExpressionGatherer();

                if (expression == null)
                {
                    return(gatherer._expressions.ToReadOnly());
                }

                gatherer.Visit(expression);

                return(gatherer._expressions.ToReadOnly());
            }
コード例 #4
0
 private static bool HasXmlToCursorExpression(Expression expression)
 {
     return(XmlToCursorExpressionGatherer.Gather(expression).Any());
 }
コード例 #5
0
            public static IEnumerable<XmlToCursorExpression> Gather(Expression expression)
            {
                var gatherer = new XmlToCursorExpressionGatherer();

                if (expression == null) {
                    return gatherer._expressions.ToReadOnly();
                }

                gatherer.Visit(expression);

                return gatherer._expressions.ToReadOnly();
            }