NLite.Data.Test.NorthwindExecutionTest.TestJoinIntoDefaultIfEmpty C# (CSharp) Method

TestJoinIntoDefaultIfEmpty() private method

private TestJoinIntoDefaultIfEmpty ( ) : void
return void
        public virtual void TestJoinIntoDefaultIfEmpty()
        {
            var list = (
                from c in db.Customers
                where c.CustomerID == "PARIS"
                join o in db.Orders on c.CustomerID equals o.CustomerID into ords
                from o in ords.DefaultIfEmpty()
                select new { c, o }
                ).ToList();

            AssertValue(1, list.Count);
            //AssertValue(null, list[0].o);
        }
NorthwindExecutionTest