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

            w.AppendValue("a", "NOW()").AppendValue("b", "100").AppendValue("c", "NULL");
            string result = w.GetSql("t");
            string sql    = "[t].[a]=NOW(), [t].[b]=100, [t].[c]=NULL";

            Assert.AreEqual(sql, result);
        }
示例#2
0
        public void ValuesSimpleAlias()
        {
            SqlBuilder.DefaultFormatter = FormatterLibrary.MsSql;

            SetList w = new SetList(SqlBuilder.DefaultFormatter);

            w.AppendValue("a", "NOW()").AppendValue("b", "100").AppendValue("c", "NULL");
            string result = w.GetSql("t");
            string sql    = "[t].[a]=NOW(), [t].[b]=100, [t].[c]=NULL";

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

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

            w.AppendValue("a", "NOW()").AppendValue("b", "100").AppendValue("c", "NULL");
            string result = w.GetSql("t");
            string sql    = "[t].[a]=NOW(), [t].[b]=100, [t].[c]=NULL";

            Assert.Equal(sql, result);
        }