Dependency Injection frameworks have been over-hyped for too long. In most of the cases in which I have seen it touted as a perfect fit, it hasn’t really been necassary; And in some cases it made those applications harder to maintain than an alternative ‘Service
In a previous article I mentioned that Provider model can be used as a business rules layer or as a repository layer. I will show how this has been done as a portion of a real project and show all the relevant code for that
I have read lots of articles in the past couple years about provider model being either an anti-pattern, or not a pattern at all. Most people would agree that you should strive for SOLID code when working in a languages that supports object oriented programming.
Provider Model was introduced in 2004 during the beta’s for .net 2.0. Rob Howard: “The pattern itself is exceedingly simple and is given the name “provider” since it provides the functionality for an API. Defined, a provider is simply a contract between an API and