I have the following connection string declared in my app.config file:
app.config
there is another way to do this for console app:
to read it
using System.Configuration;
and then use
string CONSTRING; AppSettingsReader ap = new AppSettingsReader(); CONSTRING = ap.GetValue("SqlConString",typeof(string)).ToString();