-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Invalid object name 'AspNetUserRole'. #29945
Comments
@iamSathishMohan can you share a sample application so the issue can be debugged |
@ahmedanwar100 - here is the sample application to replicate this issue. https://github.com/iamSathishMohan/EfCore7Bug PS: This is default Asp .Net core identity schema and just scaffolded as models |
Additional Information, The difference between the model generated by EF Core Tool 6 and 7 is for the Roles property of AspNetUsers model is EF Core Tool 6
EF Core Tool 7:
So the workaround to the problem is adding |
Duplicate of #29544. |
upgraded a dotnet app from 6 to 7 with efcore updated to 7, starting getting invalid object name error for table AspNetUserRole
Schema for [dbo].[AspNetUserRoles]
Include stack traces
Include provider and version information
EF Core version: 7.01
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 7.0
Operating system: Windows 10
IDE: Visual Studio 2022 17.4.3
The text was updated successfully, but these errors were encountered: