Esempio n. 1
0
        public IEnumerable <ColumnReferenceExpression> GetColumnReferenceExpressions(TSqlFragment tsqlFragment)
        {
            var columnReferenceExpressionVisitor = new ColumnReferenceExpressionVisitor();

            tsqlFragment.AcceptChildren(columnReferenceExpressionVisitor);

            foreach (var columnReferenceExpression in columnReferenceExpressionVisitor.ColumnReferenceExpressions)
            {
                yield return(columnReferenceExpression);
            }
        }
Esempio n. 2
0
        public IEnumerable <BooleanComparisonExpression> GetBooleanComparisonExpressions(TSqlFragment tsqlFragment)
        {
            var booleanComparisonExpressionVisitor = new BooleanComparisonExpressionVisitor();

            tsqlFragment.AcceptChildren(booleanComparisonExpressionVisitor);

            foreach (var booleanComparisonExpression in booleanComparisonExpressionVisitor.BooleanComparisonExpressions)
            {
                var columnReferenceExpressionVisitor = new ColumnReferenceExpressionVisitor();

                booleanComparisonExpression.AcceptChildren(columnReferenceExpressionVisitor);

                yield return(booleanComparisonExpression);
            }
        }