コード例 #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);
            }
        }
コード例 #2
0
ファイル: Util.cs プロジェクト: rafysanchez/SME-autenticador
        internal static string GetConnectionString()
        {
            TalkDBTransactionCollection collection = new TalkDBTransactionCollection();

            return(collection["AutenticadorDB"].GetConnection.ConnectionString);
        }
コード例 #3
0
ファイル: ServerScheduler.cs プロジェクト: Mualumene/SGP
        /// <summary>
        /// Recupera a connectionString da TalkDBTransactionCollection
        /// </summary>
        /// <returns>ConnectionString</returns>
        private string GetConnectionString()
        {
            TalkDBTransactionCollection tkCollection = new TalkDBTransactionCollection();

            return(tkCollection[ConnectionStringName].GetConnection.ConnectionString);
        }
コード例 #4
0
        public static string GetConnectionString(string connectionName)
        {
            TalkDBTransactionCollection collection = new TalkDBTransactionCollection();

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