public async Task Cast1Async([DataSources] string context) { using (var db = GetDataContext(context)) AreEqual( ParentInheritance.OfType <ParentInheritance1>().Cast <ParentInheritanceBase>(), await db.ParentInheritance.OfType <ParentInheritance1>().Cast <ParentInheritanceBase>().ToListAsync()); }
public void Test8([DataSources] string context) { using (var db = GetDataContext(context)) AreEqual( ParentInheritance.OfType <ParentInheritance1>(), db.ParentInheritance.OfType <ParentInheritance1>()); }
public void Test10(string context) { using (var db = GetDataContext(context)) AreEqual( ParentInheritance.OfType <ParentInheritanceValue>(), db.ParentInheritance.OfType <ParentInheritanceValue>()); }
public void Cast1(string context) { using (var db = GetDataContext(context)) AreEqual( ParentInheritance.OfType <ParentInheritance1>().Cast <ParentInheritanceBase>(), QueryTable <ParentInheritanceBase>(db).OfType <ParentInheritance1>().Cast <ParentInheritanceBase>()); }
public void Test8([DataSources(false)] string context) { using (var db = GetDataContext(context)) AreEqual( ParentInheritance.OfType <ParentInheritance1>(), QueryTable <ParentInheritanceBase>(db).OfType <ParentInheritance1>()); }
public void Cast1([DataContexts] string context) { using (var db = GetDataContext(context)) AreEqual( ParentInheritance.OfType <ParentInheritance1>().Cast <ParentInheritanceBase>(), db.ParentInheritance.OfType <ParentInheritance1>().Cast <ParentInheritanceBase>()); }
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>())); }
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>()); }
public void Test10() { var expected = ParentInheritance.OfType <ParentInheritanceValue>(); ForEachProvider(db => AreEqual(expected, db.ParentInheritance.OfType <ParentInheritanceValue>())); }
public void Test8() { ForEachProvider(db => AreEqual( ParentInheritance.OfType <ParentInheritance1>(), db.ParentInheritance.OfType <ParentInheritance1>())); }
public void Cast1() { ForEachProvider(db => AreEqual( ParentInheritance.OfType <ParentInheritance1>().Cast <ParentInheritanceBase>(), db.ParentInheritance.OfType <ParentInheritance1>().Cast <ParentInheritanceBase>())); }