Skip to content

Creating a MVC controller with CRUD views adds second connection string to appsettings.json #3712

@richardcox13

Description

@richardcox13

(No code for this, result of running dotnet scaffold interactively.

Go through to create controller & views: find.

But my appsettings.json has been modified with a new connection string referencing SQL Server Local DB (as created by the project wizard). But there is already a DefaultConnection connection string referenced by project startup.

Why did scaffolding add this setting that isn't used in a way that is inconsistent in its naming from the project wizard?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions