Also, how do connection strings fit in?
Presumably, it is ok for the dal to read these values from the config, or should these be passed down from the top?
Also, how do connection strings fit in?
Presumably, it is ok for the dal to read these values from the config, or should these be passed down from the top?
I tend to say yes to this.
There are several reasons for encapsulating your custom configuration in a class and then injecting it, including:
So yes :)
Joshua Flanagan wrote about this some months ago.
He shows how custom configuration sections can be treated like POCOs, provided via constructor injection.