Exemple #1
0
        public Tuple <string, string> GetConnectionString(string connectionStringName) //todo: too tight coupling here
        {
            try
            {
                Tuple <string, string> values = GetConnection(connectionStringName, _fromBottomDirectory, _toUpDirectory);
                if (values == null)
                {
                    return(null);
                }


                string provider = DbReader.ProviderNameParsing(values.Item1);
                string scnn     = values.Item2;

                return(new Tuple <string, string>(provider, scnn));
            }
            catch (Exception ex)
            {
                string message = DedbugLog.ExceptionMessage(ex); // todo: funny dependancy
                _log.WriteLine(message);
            }

            return(null);
        }