visual studio + connection string + app config code example
Example: c# how to get connection string from app config
var connectionString=ConfigurationManager.ConnectionStrings["CharityManagement"].ConnectionString;
var connectionString=ConfigurationManager.ConnectionStrings["CharityManagement"].ConnectionString;