✅ How to get better at writing EF Queries?
Maybe I just don't really understand things, but I create database tables try to separate things and do all the relationships, and then I start having to do these massive includes like this, and I feel like its just going to cause performance issues
Is there a better way to make these queries? I tried doing courses on EF Core itself to learn better but its always just these simple queries and then my personal projects require more complex queries where I start to hit a world of issues.
I've managed to refactor the above into this
But I still feel like repeatedly doing includes causes issues.
Is there a better way to make these queries? I tried doing courses on EF Core itself to learn better but its always just these simple queries and then my personal projects require more complex queries where I start to hit a world of issues.
I've managed to refactor the above into this
But I still feel like repeatedly doing includes causes issues.