public SQLServerDatabase(string dbName, string dtSource, string userName, string password) { this.dbName = dbName; this.dtSource = dtSource; this.userName = userName; this.password = password; connection = new SQLServerConnectionAdapter(this); coreDatabase = new DatabaseConcreteComponent(ref connection, ref tables); }
public MySQLDatabase(string database, string host, string username, string password, string port) { this.database = database; this.host = host; this.username = username; this.password = password; this.port = port; connection = new MySQLConnectionAdapter(this); coreDatabase = new DatabaseConcreteComponent(ref connection, ref tables); }