Skip to content

Investigate injecting connection strings via DI  #30

@farlee2121

Description

@farlee2121

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

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions