I have a table named AspNetRoles
in my database and context generated from database.
I get the error when trying to the table via context. It likely think the table name is singular and not able to find a table named AspNetRole
. Now, the question is how to adress the right table?
AspNetRole Entity
OnModelCreating
db.AspNetroles
Context.AspNertRoles
I am trying to query AspNetRoles
from the AspNetRoles table in database. I am expecting to find a way to make my context reach the right table when quering.
Mehmet Emin Kırgın is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1