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

[Scaffolding] checking for full model name (includes namespace) when checking for db context type #1968

Merged
merged 1 commit into from Aug 2, 2022

Conversation

deepchoudhery
Copy link
Contributor

@deepchoudhery deepchoudhery commented Aug 1, 2022

DbContext model's full name was not being checked. For example:

DbContext class : 

namespace blah 
{
    public class TestDbContext : DbContext 
    {}
}

Now, when we pass it to dotnet-aspnet-codegenerator, we can pass it as blah.TestDbContext or TestDbContext. Before this check, passing blah.TestDbContext would create an additional TestDbContext as it would not find the one we are looking for.

@deepchoudhery deepchoudhery self-assigned this Aug 1, 2022
@deepchoudhery deepchoudhery merged commit a2cd3c7 into main Aug 2, 2022
@deepchoudhery deepchoudhery deleted the dev/decho/fix-extra-identity-db branch August 2, 2022 06:17
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

Successfully merging this pull request may close these issues.

None yet

2 participants