Skip to content

What is the point of ConnectionStrings section in appsettings.json? #29600

Answered by gfoidl
MhAllan asked this question in Q&A
Discussion options

You must be logged in to vote

To specify connection strings (to databases).

Connection strings are used quite often, so there's a handy extension-method GetConnectionString to simplify retrieval of it's value.
See e.g. EF Core Docs for Connection Strings and Connection string prefixes in the ASP.NET Core Docs.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@MhAllan
Comment options

@davidfowl
Comment options

Answer selected by davidfowl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants