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

TestSelectNestedCollectionInAnonymousType() private method

private TestSelectNestedCollectionInAnonymousType ( ) : void
return void
        public virtual void TestSelectNestedCollectionInAnonymousType()
        {
            var list = (
                from c in db.Customers
                where c.CustomerID == "ALFKI"
                select new { Foos = db.Orders.Where(o => o.CustomerID == c.CustomerID).Select(o => o.OrderID).ToList() }
                ).ToList();
            AssertValue(1, list.Count);
            AssertValue(6, list[0].Foos.Count);
        }
NorthwindExecutionTest