You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
InvalidOperationException: Cannot use table 'AspNetRoles' for entity type 'AspNetRoles' since it is being used for entity type 'IdentityRole' and there is no relationship between their primary keys.
Each time I am trying to access the database using Entity FrameWork Core to read/write data I am getting this exception. The code generating the exception could be as simple as var p = _context.Platforms.Where(c=> c.PlatformId == 1);
I am using Identity and my database context is inheriting from IdentityDbContext<AspNetUsers>
I am using Entity Framework Core 2.2
The text was updated successfully, but these errors were encountered:
The full error message:
InvalidOperationException: Cannot use table 'AspNetRoles' for entity type 'AspNetRoles' since it is being used for entity type 'IdentityRole' and there is no relationship between their primary keys.
Each time I am trying to access the database using Entity FrameWork Core to read/write data I am getting this exception. The code generating the exception could be as simple as
var p = _context.Platforms.Where(c=> c.PlatformId == 1);
I am using Identity and my database context is inheriting from
IdentityDbContext<AspNetUsers>
I am using Entity Framework Core 2.2
The text was updated successfully, but these errors were encountered: