I found some cases, when DO uses INNER joins instead of LEFT OUTER.

Example: http://pastebin.com/jzSQUBPi

                var qq2 = result.Select(a => new { a, a.Coupon.Bonds.Name });
                var qc = result.ToArray(); // 1 Item
                var qa = qq2.ToArray();    // 0 Items! Bug!

asked May 26 '15 at 08:23

pil0t's gravatar image

pil0t
207575763


One Answer:

Hello pil0t.

I fixed using Inner Join instead of Left Join in some cases. I've just check your case on on developing branch and test has been passed. So in 5.0.6 code like this will work. It happens because of DO tries to resolve not nullable reference and uses inner join instead of left join.

answered May 27 '15 at 09:04

Alexey%20Kulakov's gravatar image

Alexey Kulakov
77225

edited May 28 '15 at 05:40

Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA