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

TestCompareConstantEntityNestedRelationshipNegation() private method

        public virtual void TestCompareConstantEntityNestedRelationshipNegation()
        {
            var exclude = new Order() { OrderID = 10702 };

            var testQuery = from c in db.Customers
                            from o in c.Orders
                            from d in o.Details
                            where o != exclude
                            select d;

            var test = testQuery.ToList();

            AssertValue(2153, test.Count);
        }
NorthwindExecutionTest