Read the connection string from the App.Config file using the configuration manager code example
Example: c# how to get connection string from app config
var connectionString=ConfigurationManager.ConnectionStrings["CharityManagement"].ConnectionString;