Pages - Menu

nopCommerce - Where is the DB Connection String?

Database Connection String

This maybe a frequently asked question in nopCommerce. Where do you change the connection string for database? Web.config has been the known location for many .Net web developers, but nopCommerce takes a different approach.

The string is stored in a plain text file called Settings.txt located in App_Data, not so obvious, but once you find it, it is obvious. :)


But Why??

As to why not use the web.config? That would be a question for the core team. Why not use web.config and take advantage of the web.config transformation to easily manage the differences between development, staging and live environments? I want to know the answer too!!



No comments:

Post a comment