
























public virtual string GetSqlCommand()
{
string key =this.GetGuid();
StringBuilder sb = new StringBuilder(" if exists (select * from "+this.GetTableName()+" where "+key+" = '"+this.GetPropertyValue(key)+"')");
sb.AppendLine().Append("Begin");
sb.AppendLine().Append(BuildUpdateCom());
sb.AppendLine().Append("End");
sb.AppendLine().Append("Else");
sb.AppendLine().Append("Begin");
sb.AppendLine().Append( BuildInsertCom());
sb.AppendLine().Append("End");
return sb.ToString();
}
发表于 2012-04-27 09:59 iSun自由软件团件 阅读(168) 评论() 收藏 举报
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。