Ejemplo n.º 1
0
        private Expression AddJoin(MemberExpression expression)
        {
            string key = ExpressionKeyVisitor.Visit(expression, null);
            LeftJoinClause join;

            if (!_joins.TryGetValue(key, out join))
            {
                join = new LeftJoinClause(_nameGenerator.GetNewName(), expression.Type, expression);
                _joins.Add(key, join);
            }

            return new QuerySourceReferenceExpression(join);
        }
Ejemplo n.º 2
0
        private Expression AddJoin(MemberExpression expression)
        {
            string         key = ExpressionKeyVisitor.Visit(expression, null);
            LeftJoinClause join;

            if (!_joins.TryGetValue(key, out join))
            {
                join = new LeftJoinClause(_nameGenerator.GetNewName(), expression.Type, expression);
                _joins.Add(key, join);
            }

            return(new QuerySourceReferenceExpression(join));
        }