示例#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)));
        }