have so many .Include and .ThenInclude.. Is there some alternative?
You should use AsNoTracking() if your query for read purposes. Also you can specify anonymous object to select only required properties. Your tables should have indexes on foreign keys. It's basic advice, if you share the query maybe someone will help you more
wow this led me to look into anonymous types, I had no idea I could do this
And also check how your query is translated into sql. There're some tricky things, sometimes this behaviour is implicit. It's possible that part of your data (for example, filtering) processed on the server
Обсуждают сегодня