Ejemplo n.º 1
0
 public void Dispose()
 {
     this.cnn         = null;
     this.commandText = null;
     if (this.cmd != null)
     {
         this.cmd.Dispose();
         this.cmd = null;
     }
 }
Ejemplo n.º 2
0
 public LTCDataAdapter(string cmdText, LTCConnection LTCcon)
 {
     this.con = LTCcon;
     try
     {
         this.adapter = new OracleDataAdapter(cmdText, (OracleConnection)LTCcon.con);
     }
     catch (Exception exception)
     {
         throw new LTCException(exception, exception.Message);
     }
 }
Ejemplo n.º 3
0
 public LTCCommand(string cmdText, LTCConnection LTCcnn)
 {
     try
     {
         this.commandText = cmdText;
         this.cnn         = LTCcnn;
         this.cmd         = new OracleCommand(this.commandText, (OracleConnection)LTCcnn.con);
     }
     catch (Exception exception)
     {
         throw new LTCException(exception, exception.Message);
     }
 }
Ejemplo n.º 4
0
 internal LTCCommand(IDbCommand cmd)
 {
     try
     {
         this.cmd         = cmd;
         this.commandText = this.cmd.CommandText;
         this.cnn         = new LTCConnection(this.cmd.Connection);
     }
     catch (Exception exception)
     {
         throw new LTCException(exception, this.cmd.CommandText + exception.Message);
     }
 }
Ejemplo n.º 5
0
 public LTCDataAdapter(LTCCommand LTCCmd)
 {
     try
     {
         //string cmdText = LTCCmd.CommandText;
         LTCConnection LTCcon = LTCCmd.cnn;
         //this.adapter = new OracleDataAdapter(cmdText, (OracleConnection)LTCcon.con);
         OracleCommand oraCmd = new OracleCommand(LTCCmd.CommandText, (OracleConnection)LTCcon.con);
         foreach (OracleParameter ltcPar in LTCCmd.Parameters)
         {
             oraCmd.Parameters.Add(ltcPar.ToString(), ltcPar.Value);
         }
         this.adapter = new OracleDataAdapter(oraCmd);
     }
     catch (Exception exception)
     {
         throw new LTCException(exception, exception.Message);
     }
 }
Ejemplo n.º 6
0
 public void Dispose()
 {
     this.adapter = null;
     this.con     = null;
 }