Skip to content

Add support for keyed services in DI #1391

@bgrainger

Description

@bgrainger

.NET 8.0 is adding support for keyed services; we should add AddMySqlDataSource overloads which accept a key. This is ideal for registering multiple data sources in the same DI container, and later selecting which one you want via e.g. [FromKeyedServices].

See related Npgsql issue: npgsql/npgsql#5134.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions