Beispiel #1
0
 public void Test9()
 {
     ForEachProvider(db => AreEqual(
                         ParentInheritance
                         .Where(p => p.ParentID == 1 || p.ParentID == 2 || p.ParentID == 4)
                         .OfType <ParentInheritanceNull>(),
                         db.ParentInheritance
                         .Where(p => p.ParentID == 1 || p.ParentID == 2 || p.ParentID == 4)
                         .OfType <ParentInheritanceNull>()));
 }
Beispiel #2
0
 public void Test9([DataSources] string context)
 {
     using (var db = GetDataContext(context))
         AreEqual(
             ParentInheritance
             .Where(p => p.ParentID == 1 || p.ParentID == 2 || p.ParentID == 4)
             .OfType <ParentInheritanceNull>(),
             db.ParentInheritance
             .Where(p => p.ParentID == 1 || p.ParentID == 2 || p.ParentID == 4)
             .OfType <ParentInheritanceNull>());
 }
 public void Test9(string context)
 {
     using (var db = GetDataContext(context))
         AreEqual(
             ParentInheritance
             .Where(p => p.ParentID == 1 || p.ParentID == 2 || p.ParentID == 4)
             .OfType <ParentInheritanceNull>(),
             QueryTable <ParentInheritanceBase>(db)
             .Where(p => p.ParentID == 1 || p.ParentID == 2 || p.ParentID == 4)
             .OfType <ParentInheritanceNull>());
 }