Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ConnectionStrings section with named connection strings #4

Closed
satano opened this issue Jun 24, 2019 · 0 comments · Fixed by #6
Closed

Use ConnectionStrings section with named connection strings #4

satano opened this issue Jun 24, 2019 · 0 comments · Fixed by #6
Assignees
Labels
enhancement New feature or request

Comments

@satano
Copy link
Member

satano commented Jun 24, 2019

We use our own setup of connection string in settings. We require ConnectionString section with ProviderName and ConnectionString subkeys. (And I think when we use migrations in APIs, the connection string is twice in the appsettings.json.)

We could use default connection strings settings (as Entity Framework does it). The section name is ConnectionStrings and subkeys are names of the connection strings. Our provider can be integrated in connection string itself. When creating IDatabase, connection string name will be specified. If the name is not specified, default name DefaultConnection will be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant