Skip to main content
Jagdish Kumawat
Founder @ Dewiride
View all authors

How to Reuse a Select Projection with an Expression in EF Core

· 5 min read
Jagdish Kumawat
Founder @ Dewiride

When several queries return the same response, you want one definition of how to build it. The obvious way, a normal C# method inside Select, loads every column, and throws NullReferenceException as soon as it touches a navigation. The same code written as an Expression lets EF Core read it, and it sends only the columns and joins it needs.

How to Read Rows from MySQL with EF Core and LINQ

· 6 min read
Jagdish Kumawat
Founder @ Dewiride

With EF Core, you read rows by writing a LINQ query in C#, and EF Core turns it into SQL. The part that surprises people is timing: building the query sends nothing, and only ToListAsync or a similar call goes to MySQL. This guide reads rows with Where and OrderBy, shows the SQL each piece becomes, and proves the timing with real logs.