Example #1
0
 public ComDataAdapter(string selectCommandText, ComConnection con)
 {
     _da = new SqlDataAdapter(selectCommandText, con.Connection);
 }
Example #2
0
 public DataAccess(string connstr)
 {
     this._dbconn = new ComConnection(connstr);
 }
Example #3
0
 private ComTransaction trans  = null;      ///定义事务;
 /// <summary>
 /// 构造函数
 /// </summary>
 public DataAccess(ComConnection conn)
 {
     this._dbconn = conn;
 }
Example #4
0
 public ComCommand(string cmdText, ComConnection con, ComTransaction trans)
 {
     _cmd = new System.Data.OracleClient.OracleCommand(cmdText, con.Connection, trans.Transaction);
 }
Example #5
0
 public ComCommand(string cmdText, ComConnection con)
 {
     _cmd = new SqlCommand(cmdText, con.Connection);
     // _cmd.BindByName = true;
 }
Example #6
0
 public ComDataAdapter(string selectCommandText, ComConnection con)
 {
     _da = new System.Data.OracleClient.OracleDataAdapter(selectCommandText, con.Connection);
 }