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); }
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); }
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); }