GameShark
❔ Registering a User with Identity and EfCore calls the OnConfiguring Method of my AppDbContext?
I see. I renamed the tables and properties using snakecase in the OnModelCreating method, but that means whenever a user needs to request something from my database, then it will go through the OnModelCreating method which will slow down all the requests by a large amount. Would it be better to add the dbcontext as a singleton so this doesnt happen?
11 replies
❔ Loop pyramid
this should give you an idea on how to solve the problem: https://learn.microsoft.com/en-us/dotnet/standard/base-types/padding
24 replies