internal Database(DbType dbType, string connectionString) { _dbType = dbType; switch (_dbType) { case DbType.Mysql: _innerDb = new MysqlDatabase(connectionString, 120); break; case DbType.SqlServer2005: _innerDb = new SqlServerDatabase(connectionString, 120); break; default: throw new NotSupportedException(string.Format("Not Support DbType:{0} {1}", dbType, connectionString)); } }
public Database(string connectionString, int commandTimeOut) { _innerDb = new MysqlDatabase(connectionString, commandTimeOut); }