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); } }
internal static string GetConnectionString() { TalkDBTransactionCollection collection = new TalkDBTransactionCollection(); return(collection["AutenticadorDB"].GetConnection.ConnectionString); }
/// <summary> /// Recupera a connectionString da TalkDBTransactionCollection /// </summary> /// <returns>ConnectionString</returns> private string GetConnectionString() { TalkDBTransactionCollection tkCollection = new TalkDBTransactionCollection(); return(tkCollection[ConnectionStringName].GetConnection.ConnectionString); }
public static string GetConnectionString(string connectionName) { TalkDBTransactionCollection collection = new TalkDBTransactionCollection(); return(collection[connectionName].GetConnection.ConnectionString); }