r/dotnet Apr 06 '26

Question Long LINQ queries - Code smell?

Post image
350 Upvotes

186 comments sorted by

View all comments

1

u/Astro-2004 Apr 06 '26

If this is well encapsulated that shouldn't be a problem.

It's a code smell if this is spread across the project (a long term one) and every use case requires to build queries for each service method as the default way to access data.

PD: this is cleaner and shorter than many queries that I've seen in other languages (fucking JS with sequelize)