Ejemplo n.º 1
0
        public void AndEqualGreaterParam()
        {
            WhereList w = new WhereList(global::SqlBuilder.Format.MsSQL);

            w.EqualGreaterValue("a", "1");
            w.EqualGreaterValue("b", "2");
            w.EqualGreaterValue("c", "3");
            string result = w.GetSql();
            string sql    = "[a]>=1 AND [b]>=2 AND [c]>=3";

            Assert.AreEqual(sql, result);
        }
Ejemplo n.º 2
0
        public void AndEqualGreaterParam()
        {
            SqlBuilder.DefaultFormatter = FormatterLibrary.MsSql;

            WhereList w = new WhereList(SqlBuilder.DefaultFormatter);

            w.EqualGreaterValue("a", "1");
            w.EqualGreaterValue("b", "2");
            w.EqualGreaterValue("c", "3");
            string result = w.GetSql();
            string sql    = "[a]>=1 AND [b]>=2 AND [c]>=3";

            Assert.AreEqual(sql, result);
        }
Ejemplo n.º 3
0
        public void AndEqualGreaterParam()
        {
            SuperSql.DefaultFormatter = FormatterLibrary.MsSql;

            var w = new WhereList(SuperSql.DefaultFormatter);

            w.EqualGreaterValue("a", "1");
            w.EqualGreaterValue("b", "2");
            w.EqualGreaterValue("c", "3");
            var result = w.GetSql();
            var sql    = "[a]>=1 AND [b]>=2 AND [c]>=3";

            Assert.Equal(sql, result);
        }