GameShark
GameShark
CC#
Created by GameShark on 4/11/2023 in #help
❔ Catching Exceptions with generic parameters?
Thanks!
6 replies
CC#
Created by GameShark on 4/11/2023 in #help
❔ Catching Exceptions with generic parameters?
6 replies
CC#
Created by GameShark on 4/11/2023 in #help
❔ Catching Exceptions with generic parameters?
6 replies
CC#
Created by GameShark on 4/7/2023 in #help
❔ Benefits of using a ServiceManager class over dependency injection?
thank you for the clarification
5 replies
CC#
Created by GameShark on 3/24/2023 in #help
✅ best LINQ method to sort after subtracting two properties?
Oh. Well I feel dumb. Thanks!
8 replies
CC#
Created by GameShark on 11/23/2022 in #help
❔ How do these SQL queries work?
Thank you for the explanation, that really helps clear things up. Is the distinct clause inside the subquery necessary? What would happen if it was left out?
9 replies
CC#
Created by Reki- on 11/16/2022 in #help
❔ Loop pyramid
to center the output
24 replies
CC#
Created by GameShark on 11/19/2022 in #help
❔ Registering a User with Identity and EfCore calls the OnConfiguring Method of my AppDbContext?
ah nvm, i've learned the onmodelcreating is called the first time the context is created.
11 replies
CC#
Created by GameShark on 11/19/2022 in #help
❔ 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
CC#
Created by Reki- on 11/16/2022 in #help
❔ 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
CC#
Created by GameShark on 11/12/2022 in #help
❔ Changing object property not limited to scope?
Huh. I always thought passing an object into aa method creates a copy of the obj. TIL. Thanks.
8 replies
CC#
Created by GameShark on 11/12/2022 in #help
❔ Changing object property not limited to scope?
Wouldn't you have to use the ref keyword for it to be a reference type?
8 replies