M
michaeltours
I've got an n-Tier web app. I've recently had to re-write our data tier as it was not really doing what we needed. However, as this is my first crack at writing a data-tier I've got one simple question.
What is the best way to store / manage Connection strings. The previous version of this component let developers pass the connectionstring to the datalayer from Business components (which I thought was wrong because 98% of the time we only connect to one physical database). I've written the new component so that it retrieves the connection string from machine.config (where it is encrypted), but now that I have 2 connection strings is this still the best way
How should I be storing connection strings and should my datatier component know which one to use or should it be passed in by different Business objects
What is the best way to store / manage Connection strings. The previous version of this component let developers pass the connectionstring to the datalayer from Business components (which I thought was wrong because 98% of the time we only connect to one physical database). I've written the new component so that it retrieves the connection string from machine.config (where it is encrypted), but now that I have 2 connection strings is this still the best way
How should I be storing connection strings and should my datatier component know which one to use or should it be passed in by different Business objects