Exemple #1
0
        public virtual bool Connect(enmConnection dbType, InfoConnection Info)
        {
            switch (dbType)
            {
            case enmConnection.Access: { db = new Access(Info); break; }

            case enmConnection.Interbase: { db = new Interbase(Info); break; }

            case enmConnection.Firebird: { db = new Firebird(Info); break; }

            case enmConnection.MySql: { db = new MySql(Info); break; }

            case enmConnection.SqlServer: { db = new SqlServer(Info); break; }

            case enmConnection.SqlServerCe: { db = new SqlServerCe(Info); break; }

            case enmConnection.SQLite: { db = new SQLite(Info); break; }

            case enmConnection.Oracle: { db = new OracleODAC(Info); break; }

            case enmConnection.Odbc: { db = new Odbc(Info); break; }

            case enmConnection.OleDb: { db = new OleDb(Info); break; }

            default:
            { break; }
            }

            return(db.IsConnected());
        }
Exemple #2
0
 public DbBase(InfoConnection Info)
 {
     this.dbu              = new DatabaseUtils();
     this.QueryParam       = new QueryParameters(dbu);
     this.DbConnection     = null;
     this.Info             = Info;
     this.ConnectionString = "";
     this.LastSql          = "";
     drv_Inicialize();
     TestConnection();
 }
Exemple #3
0
 public Interbase(InfoConnection Info)
     : base(Info)
 {
 }
Exemple #4
0
 public Odbc(InfoConnection Info)
     : base(Info)
 {
 }
Exemple #5
0
 public MySql(InfoConnection Info)
     : base(Info)
 {
 }
Exemple #6
0
 public OracleODAC(InfoConnection Info)
     : base(Info)
 {
 }
Exemple #7
0
 public SQLite(InfoConnection Info)
     : base(Info)
 {
 }
Exemple #8
0
 public Access(InfoConnection Info)
     : base(Info)
 {
 }
Exemple #9
0
 public Firebird(InfoConnection Info)
     : base(Info)
 {
 }
Exemple #10
0
 public SqlServer(InfoConnection Info)
     : base(Info)
 {
 }
Exemple #11
0
 public OleDb(InfoConnection Info)
     : base(Info)
 {
 }