Exemplo n.º 1
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <returns></returns>
 public override object Delete()
 {
     if (Synch.Equals("UFOper"))
     {
         sqlOper = new UFOper(oraLinkName, ufConnStr, ufTableName, ufPriKey, oracleTableName, oraclePriKey, l, lst);
         if (bNoCase)
         {
             sqlOper.Delete();  //清除旧记录
         }
         if (bSaveOper)
         {
             return(this.Insert());
         }
         else
         {
             return(1);
         }
     }
     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());
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <returns></returns>
 public override object Delete()
 {
     sqlOper = new UFOper(oraLinkName, ufConnStr, ufTableName, ufPriKey, oracleTableName, oraclePriKey, l, lst);
     if (bNoCase)
     {
         sqlOper.Delete();  //清除旧记录
     }
     if (bSaveOper)
     {
         return(this.Insert());
     }
     else
     {
         return(1);
     }
 }