// option: // 0 - odbc connection // 1 - oledb connection public DbContext(string dbFileName, int option = 0) { if (option == 0) _adapter = new OdbcAdapter(dbFileName); else _adapter = new OleDbAdapter(dbFileName); _connection = _adapter.NewConnection(); }
// option: // 0 - odbc connection // 1 - oledb connection public DbContext(string dbFileName, int option = 0) { if (option == 0) { _adapter = new OdbcAdapter(dbFileName); } else { _adapter = new OleDbAdapter(dbFileName); } _connection = _adapter.NewConnection(); }