Apr 30, 2022
Decoupling and abstracting your db context is not always easy. You lose most of the features when doing so.
I am not saying it is not useful, but it is not mandatory in an application. In fact i find it rare, you need to have a big complex business domain so that your infrastructure isolation and business persistance outlays the benefits of using a provider that will never change