Exemplo n.º 1
0
 public void MethodExpression10([IncludeDataSources(TestProvName.AllSQLite)] string context)
 {
     using (var db = new TestDataConnection(context))
         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 db.GetParent10(ch)
             where ch.ParentID == p.ParentID
             select ch);
 }
Exemplo n.º 2
0
 public void MethodExpression10()
 {
     using (var db = new TestDataConnection())
         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 db.GetParent10(ch)
             where ch.ParentID == p.ParentID
             select ch);
 }