← Back
Nick Chapsas August 4, 2025 28s

EF Core projections are awesome in C#

Summary

The transcript discusses optimizing Entity Framework Core queries by projecting directly into Data Transfer Objects (DTOs) instead of fetching entire entities, which can waste memory and slow down performance. The key technique involves selecting only the specific fields needed, avoiding unnecessary data retrieval and navigation properties. This approach is particularly useful when dealing with entities that have complex relationships or lazy-loaded collections. The practical takeaway is to use projection techniques to improve query efficiency and reduce unnecessary data transfer in .NET applications.

View original episode ↗