Skip to content

Document named connection string format #3071

@SetTrend

Description

@SetTrend

In DbContext in dependency injection for ASP.NET Core it reads:

options => options.UseSqlServer("name=ConnectionStrings:DefaultConnection"));

I couldn't find documentation on the name parameter of this connection string.

Is this a typo or does this connection string parameter exist?

If it exists, I propose to add corresponding explanation about the behaviour of this connection string parameter to, e.g., Connection Strings, or Configuration in ASP.NET Core.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions