I am working in Asp.net Razor MVC3. I have created a App_Code folder and make a class in which I want read connection string from web.config and working with database by using this class. I am writing System.Configuration in this app_code class but it didn't shows me ConfigurationManager of Configuration class.
It shows like this
Rather than if I am write the same line in any controller then it will show System.Configuration.ConfigurationManager and in controller I can read connection string from web.config but in app_code I can't.
Please give me the solution how to read connection string in app_code class?