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); }
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)); }