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

Mismatched namespace for inserting DbInitializer code #10222

Closed
rswetnam opened this issue Jan 5, 2019 — with docs.microsoft.com · 1 comment
Closed

Mismatched namespace for inserting DbInitializer code #10222

rswetnam opened this issue Jan 5, 2019 — with docs.microsoft.com · 1 comment
Labels
Pri2 Priority 2 Source - Docs.ms Docs Customer feedback via GitHub Issue
Milestone

Comments

Copy link

rswetnam commented Jan 5, 2019

In section https://docs.microsoft.com/en-us/aspnet/core/data/ef-rp/intro?view=aspnetcore-2.2&tabs=visual-studio#add-code-to-initialize-the-db-with-test-data, user is instructed: "In the Data folder, create a new class file named DbInitializer.cs and add the following code:" The code however, uses the namespace ContosoUniversity.Models.


Document Details

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

@dotnet-bot dotnet-bot added the Source - Docs.ms Docs Customer feedback via GitHub Issue label Jan 5, 2019
@Rick-Anderson Rick-Anderson added the Pri2 Priority 2 label Jan 7, 2019
@Rick-Anderson Rick-Anderson added this to the Backlog milestone Jan 7, 2019
@Rick-Anderson
Copy link
Contributor

That's because the scaffolder generates the wrong namespace.
See dotnet/Scaffolding#822
Dup of #10181

Rick-Anderson added a commit that referenced this issue Jan 12, 2019
@dotnet dotnet locked and limited conversation to collaborators Aug 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Pri2 Priority 2 Source - Docs.ms Docs Customer feedback via GitHub Issue
Projects
None yet
Development

No branches or pull requests

3 participants