Configuring Automapper in Bootstrapper violates Open-Closed Principle?

I would argue that you are violating two principles: the single responsibility principle (SRP) and the open/closed principle (OCP). You are violating the SRP because the bootstrapping class have more than one reason to change: if you alter model binding or the auto mapper configuration. You would be violating the OCP if you were to … Read more

What is the meaning and reasoning behind the Open/Closed Principle?

It means that you should put new code in new classes/modules. Existing code should be modified only for bug fixing. New classes can reuse existing code via inheritance. Open/closed principle is intended to mitigate risk when introducing new functionality. Since you don’t modify existing code you can be assured that it wouldn’t be broken. It … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)