private void CreateGetAllTable(SqlConnection sqlConnection) { var provider = new DbQueryProvider(sqlConnection); var paynes = new UltimateQueryable <MajorPayne>(provider) .AsEnumerable(); Assert.AreEqual(paynes.Count(), 4); }
private void CreateSimpleSelect(SqlConnection sqlConnection) { var provider = new DbQueryProvider(sqlConnection); var paynes = new UltimateQueryable<MajorPayne>(provider) .Select(payne => payne.Height) .AsEnumerable(); Assert.AreEqual(paynes.Count(), 4); }
private void CreateWhereWithSimplePredicate(SqlConnection sqlConnection) { var provider = new DbQueryProvider(sqlConnection); var paynes = new UltimateQueryable <MajorPayne>(provider) .Where(payne => payne.Height > 170) .AsEnumerable(); Assert.AreEqual(paynes.Count(), 2); }