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