Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 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);
 }