public void Dispose() { this.cnn = null; this.commandText = null; if (this.cmd != null) { this.cmd.Dispose(); this.cmd = null; } }
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); } }
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); } }
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); } }
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); } }
public void Dispose() { this.adapter = null; this.con = null; }