GSGBen / GSGBen/IdentityManagerUI-NetCore6-Template

IdentityManageUI is creating two tables in the DB that perform the same thing

Open
#1 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
5
Forks
3
PR merge metrics
No merged PRs in 30d

Description

**### THANK YOU FOR CREATING THIS TEMPLATE!!! It has been a BIG HELP!!!**

I am hoping you can help me solve this issue. I am trying to determine where IdentityManagerUI is causing this issue. I believe the problem is in the ApplicationRoles.cs definition within the ApplicationRole identity with the public virtual. But, I can't be positive.

I am using the ApplicationDbContext.cs to change the names of the Tables in the Database. One of the tables, "ASPNETRoles" is supposed to be named "Roles".

When I run the Package Manager Commands (add-migration, update-database), the commands are creating both Tables.

Once I run my application, ASPNETRoles has the actual Role Data in it. The other table (Roles) only has "Id" column in it.

I am including screenshots of the tables, the migration file, ApplicationDbContext.cs, Program.cs, and ApplicationRole.cs.

------ Files are Listed below ------

![Identity-ASPNETRoles-screenshot](https://user-images.githubusercontent.com/4992309/179442321-1d6a1847-a40d-4c41-9053-4678b5b308f2.png)

![Identity-Roles-screenshot](https://user-images.githubusercontent.com/4992309/179442360-d432f898-ef6a-434a-a7b2-3e8b77914e2d.png)

[20220718032147_after IdentityManagerUI Fixes.cs.txt](https://github.com/GSGBen/IdentityManagerUI-NetCore6-Template/files/9129350/20220718032147_after.IdentityManagerUI.Fixes.cs.txt)

[ApplicationDbContext.cs.txt](https://github.com/GSGBen/IdentityManagerUI-NetCore6-Template/files/9129351/ApplicationDbContext.cs.txt)

[Program.cs.txt](https://github.com/GSGBen/IdentityManagerUI-NetCore6-Template/files/9129353/Program.cs.txt)

[ApplicationRole.cs.txt](https://github.com/GSGBen/IdentityManagerUI-NetCore6-Template/files/9129354/ApplicationRole.cs.txt)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.