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

Blazor Identity scaffolder should generate a DbContext with a unique name #2882

Open
danroth27 opened this issue Jul 19, 2024 · 0 comments
Open

Comments

@danroth27
Copy link
Member

If I use the Blazor Identity scaffolder to generate an IdentityDbContext type it doesn't seem to detect if a type already exists with the suggested default name. You then get the following error when running the Blazor Identity scaffolder:

image

I hit this when I run the Blazor Identity scaffolder after running the Blazor CRUD scaffolder, which uses the same default suggested name for the generated DbContext.

Repro steps:

  • Create a Blazor Web App
  • Run the Blazor CRUD scaffolder and generate a DbContext using the default name
  • Run the Blazor Identity scaffodler and generate an IdentityDbContext using the default name

Actual result: Error complaining that the DbContext isn't an IdentityDbContext
Expected result: The suggested name for the IdentityDbContext is unique

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant