StringTemplate.NET实例1

时间:2009-11-07 阅读: 佚名
StringTemplate query = new StringTemplate("SELECT $column$ FROM $table$;"); query.SetAttribute("column", "name"); query.SetAttribute("table", "User"); 结果:SELECT name FROM User;

StringTemplate query = new StringTemplate("SELECT $column$ FROM $table$;");
query.SetAttribute("column", "name");
query.SetAttribute("table", "User");

结果:SELECT name FROM User;

[责任编辑:jumbot]

[发表评论] [收藏本页]