score:1

To select all properties of property l just select it whole:

return expression.InnerJoin(
    DbExpressionBuilder.Scan(joinEntity),
        (l, r) => DbExpressionBuilder.Equal(
                    DbExpressionBuilder.Property(l, "JoinId"),
                    DbExpressionBuilder.Property(r, "JoinId")
                )
    )
    .Select(exp => exp.Property("l"));

This will automatically generate query selecting all columns that "l" has.


Related Articles