예제 #1
0
        public void WhereNullableIntIsNullBetween()
        {
            var source = TestData.GetNullables();
            var result = source.Query <NullableProperty>("SELECT * FROM this WHERE NullableInt BETWEEN 0 AND 4");

            Assert.IsTrue(result.SequenceEqual(source.Where(i => i.NullableInt >= 0 && i.NullableInt <= 4)));
        }
예제 #2
0
        public void WhereNullableIntIsNullIn()
        {
            var source = TestData.GetNullables();
            var result = source.Query <NullableProperty>("SELECT * FROM this WHERE NullableInt IN( 0, 4 )");

            Assert.IsTrue(result.SequenceEqual(source.Where(i => i.NullableInt == 0 || i.NullableInt == 4)));
        }
예제 #3
0
        public void WhereNullableIntIsNullGreaterThanEqual()
        {
            var source = TestData.GetNullables();
            var result = source.Query <NullableProperty>("SELECT * FROM this WHERE NullableInt >= 1");

            Assert.IsTrue(result.SequenceEqual(source.Where(i => i.NullableInt >= 1)));
        }