BuildConnectionString() public method

public BuildConnectionString ( string dbType, string dsnName, string auth_type, string server, string port, string database, string loginName, string loginpassword, string userDefinedDriverName, UseDriver useDriverType ) : string
dbType string
dsnName string
auth_type string
server string
port string
database string
loginName string
loginpassword string
userDefinedDriverName string
useDriverType UseDriver
return string
Ejemplo n.º 1
0
 private string BuildConnectionString(DBExecutor dbExecutor)
 {
     return dbExecutor.BuildConnectionString(this.GetDatabaseTypeName(this.comboBoxDatabase.SelectedIndex),
                                         this.GetAuthTypeName(this.comboBoxAuthType.SelectedIndex),
                                         this.textBoxServerName.Text,
                                         this.textBoxPort.Text,
                                         this.textBoxDatabaseName.Text,
                                         this.textBoxLoginName.Text,
                                         this.textBoxLoginPassword.Text);
 }
Ejemplo n.º 2
0
        private string BuildConnectionString(DBExecutor dbExecutor)
        {
            DBExecutor.UseDriver useDriverType;
            string driverName = this.GetDriverName(out useDriverType);

            ComboBoxDSNItem dsnItem = this.GetSelectedDSNName();
            string dsn = dsnItem.IsDSN ? dsnItem.Text : string.Empty;
            return dbExecutor.BuildConnectionString(this.GetDatabaseTypeName(this.comboBoxDatabase.SelectedIndex),
                                                dsn,
                                                this.GetAuthTypeName(this.comboBoxAuthType.SelectedIndex),
                                                this.textBoxServerName.Text,
                                                this.textBoxPort.Text,
                                                this.textBoxDatabaseName.Text,
                                                this.textBoxLoginName.Text,
                                                this.textBoxLoginPassword.Text,
                                                driverName, useDriverType);
        }