Should dependencies of custom configuration sections be introduced?

Also, how do connection strings fit in?

Presumably, is it normal for dal to read these values ​​from the config, or should they be passed on top?

+3
source share
2 answers

I tend to say yes to that.

There are several reasons for encapsulating your custom configuration in a class and then entering it, including:

  • Testability1 - . , , , App.Configs , - Microsoft ConfigurationManager
  • Testability2 - . " " (, ) , .
  • - , .

, :)

+3

Source: https://habr.com/ru/post/1734392/


All Articles