예제 #1
0
        public DB_OPT(string i, string databaseName, DataBaseType databasetype)
        {
            this.db_ora = new DB_Oracle();
            this.db_sql = new DB_Sql();
            switch (databasetype)
            {
                case DataBaseType.SqlServer:
                    this.db_sql.conn(i, databaseName);
                    return;

                case DataBaseType.Oracle:
                    this.db_ora.conn(i);
                    return;
            }
            this.db_ora.conn(i);
        }
예제 #2
0
        public DB_OPT(string i)
        {
            this.db_ora = new DB_Oracle();
            this.db_sql = new DB_Sql();
            switch (dbt)
            {
                case DataBaseType.SqlServer:
                    this.db_sql.conn(i);
                    return;

                case DataBaseType.Oracle:
                    this.db_ora.conn(i);
                    return;
            }
            this.db_ora.conn(i);
        }