示例#1
0
        public void ValuesSimple2()
        {
            ValueList w = new ValueList(global::SqlBuilder.Format.MsSQL);

            w.AppendParameters("a", "b", "c");
            string result = w.GetSql();
            string sql    = "@a, @b, @c";

            Assert.AreEqual(sql, result);
        }
示例#2
0
        public void ValuesSimple2()
        {
            NKnife.Storages.SQL.Common.SuperSql.DefaultFormatter = FormatterLibrary.MsSql;

            ValueList w = new ValueList(NKnife.Storages.SQL.Common.SuperSql.DefaultFormatter);

            w.AppendParameters("a", "b", "c");
            string result = w.GetSql();
            string sql    = "@a, @b, @c";

            Assert.Equal(sql, result);
        }
示例#3
0
        public void ValuesSimple2()
        {
            SqlBuilder.DefaultFormatter = FormatterLibrary.MsSql;

            ValueList w = new ValueList(SqlBuilder.DefaultFormatter);

            w.AppendParameters("a", "b", "c");
            string result = w.GetSql();
            string sql    = "@a, @b, @c";

            Assert.AreEqual(sql, result);
        }