private void J_ConfigureConnction(string strConnectionString, J_DatabaseType dbType) { switch (dbType) { case J_DatabaseType.Sql: this.J_IdbConn = new SqlConnection(); break; case J_DatabaseType.Oracle: this.J_IdbConn = new OracleConnection(); break; case J_DatabaseType.OleDb: this.J_IdbConn = new OleDbConnection(); break; case J_DatabaseType.Odbc: this.J_IdbConn = new OleDbConnection(); break; default: this.J_IdbConn = new SqlConnection(); break; } this.J_strConnectionString = strConnectionString; }
public DMLService() { this.J_strConnectionString = string.Empty; this.J_enmDatabaseType = J_DatabaseType.Sql; this.J_enmApplicationType = J_ApplicationType.StandAlone; this.J_IdbConn = null; this.J_IdbTran = null; this.J_IdbcmdCommand = null; this.J_intCommandTimeout = 30; this.J_intRetryConnect = 3; this.J_blnDisposed = false; this.J_blnConnected = false; }
public DMLService(string strConnectionString, J_DatabaseType dbType, J_ApplicationType AppType) { this.J_strConnectionString = string.Empty; this.J_enmDatabaseType = dbType; this.J_enmApplicationType = AppType; this.J_IdbConn = null; this.J_IdbTran = null; this.J_IdbcmdCommand = null; this.J_intCommandTimeout = 30; this.J_intRetryConnect = 3; this.J_blnDisposed = false; this.J_blnConnected = false; this.J_ConfigureConnction(strConnectionString, dbType); }