Is adding a class that inherits from something a violation of the solid principles if it changes the behavior of code?
问题 I struggled to enable my code to run code first EF migrations using different connection strings, and finally got it working. The method I used is outlined in my answer to this question What bothers me is that in order to be able to run the same code using different connection strings I had to 1) Resort to a global setting to store the connection string 2) Introduce a class whose very presence caused the code to behave differently. This is so different to the way I am used to working. Is the