public override StringBuilder CreateDeleteString() { if (Synch.Equals("UFOper")) { string sql = "DELETE FROM " + oracleTableName + " WHERE " + oraclePriKey + "=" + Convert.ToString(_PRoutingId) + " "; return(new StringBuilder(sql)); } else if (Synch.Equals("LinkOper")) { sqlOper = new LinkOper(oraLinkName, ufConnStr, ufTableName, ufPriKey, oracleTableName, oraclePriKey, l, lst); return(sqlOper.CreateDeleteString()); } else { sqlOper = new OracleOper(oraConnStr, oracleTableName, oraclePriKey, l, lst); return(sqlOper.CreateDeleteString()); } }
public override StringBuilder CreateDeleteString() { if (Synch.Equals("UFOper")) { string sql = "DELETE FROM " + oracleTableName + " WHERE " + oracleTableName + ".MoDId in( select modid from mom_orderdetail with(nolock) where mom_orderdetail.moid =" + Convert.ToString(_moid) + " and mom_orderdetail.modid =" + Convert.ToString(_modid) + ") "; return(new StringBuilder(sql)); } else if (Synch.Equals("LinkOper")) { sqlOper = new LinkOper(oraLinkName, ufConnStr, ufTableName, ufPriKey, oracleTableName, oraclePriKey, l, lst); return(sqlOper.CreateDeleteString()); } else { sqlOper = new OracleOper(oraConnStr, oracleTableName, oraclePriKey, l, lst); return(sqlOper.CreateDeleteString()); } }
/// <summary> /// 修改 /// </summary> /// <returns></returns> public override object Update() { if (Synch.Equals("UFOper")) { sqlOper = new UFOper(oraLinkName, ufConnStr, ufTableName, ufPriKey, oracleTableName, oraclePriKey, l, lst); if (bNoCase) { sqlOper.Delete(); //清除旧记录 } return(this.Insert()); } else if (Synch.Equals("LinkOper")) { sqlOper = new LinkOper(oraLinkName, ufConnStr, ufTableName, ufPriKey, oracleTableName, oraclePriKey, l, lst); return(sqlOper.Update()); } else { sqlOper = new OracleOper(oraConnStr, oracleTableName, oraclePriKey, l, lst); return(sqlOper.Update()); } }