public void Test7(string context)
 {
     using (var db = GetDataContext(context))
         AreEqual(
             from c in    Child select new { Count = GrandChild.Where(g => g.ChildID == c.ChildID).Count() },
             from c in db.Child select new { Count = db.GrandChild.Where(g => g.ChildID == c.ChildID).Count() });
 }
Ejemplo n.º 2
0
 public void Test7()
 {
     ForEachProvider(db => AreEqual(
                         from c in Child select new
     {
         Count = GrandChild.Where(g => g.ChildID == c.ChildID).Count(),
     },
                         from c in db.Child select new
     {
         Count = db.GrandChild.Where(g => g.ChildID == c.ChildID).Count(),
     }));
 }