Ejemplo n.º 1
0
        private static string GetFromConfig(string connectionName)
        {
            try
            {
                TalkDBTransactionCollection collection = new TalkDBTransactionCollection();

                if (collection.Contains(connectionName))
                {
                    return(collection[connectionName].GetConnection.ConnectionString);
                }
                else
                {
                    return(null);
                }
            }
            catch (FormatException)
            {
                return(null);
            }
        }
Ejemplo n.º 2
0
        internal static string GetConnectionString()
        {
            TalkDBTransactionCollection collection = new TalkDBTransactionCollection();

            return(collection["AutenticadorDB"].GetConnection.ConnectionString);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Recupera a connectionString da TalkDBTransactionCollection
        /// </summary>
        /// <returns>ConnectionString</returns>
        private string GetConnectionString()
        {
            TalkDBTransactionCollection tkCollection = new TalkDBTransactionCollection();

            return(tkCollection[ConnectionStringName].GetConnection.ConnectionString);
        }
Ejemplo n.º 4
0
        public static string GetConnectionString(string connectionName)
        {
            TalkDBTransactionCollection collection = new TalkDBTransactionCollection();

            return(collection[connectionName].GetConnection.ConnectionString);
        }