-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
The idea is that all information needed to run a class is declared via the constructor.
This may seem like excess work and doesn't feel much different than things like Entity framework's configuration defaults.
However, trying to reuse a class outside of the DI setting shows complications. The component cannot be used without configuration that has no explicit ties. Knowledge of the ORM is required to understand why the code doesn't run. Further, configuration via a config file may not always be preferable.
By injecting connection strings, we make this dependency explicit. Within the DI setting, the configuration still happens automagically.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request