public void MethodExpression9() { using (var db = new TestDbManager()) AreEqual( from ch in Child from p in from p in Parent where p.ParentID == ch.ChildID / 10 select p where ch.ParentID == p.ParentID select ch , from ch in db.Child from p in TestDbManager.GetParent9(db, ch) where ch.ParentID == p.ParentID select ch); }