private string ConnectionString(DBConfig.ServerElement configvalue) { return("Data Source=" + configvalue.Address + ";" + "Initial Catalog=" + configvalue.InitialCatalog + ";" + "User id=" + configvalue.Username + ";" + "Password="******";"); }
public ServerConnection(DBConfig.ServerElement config) { _name = config.Name; _adaptertype = config.AdapterType; _constring = ConnectionString(config); }
protected override object GetElementKey(ServerElement element) { return(((ServerElement)element).Name); }