How I can make ASP.NET project not suck from services controllers side.

Soo I have my code which is inside of razor page and that thing uses EF Database to take proper items, its any best way to make this less pain while still using serversided render
2 Replies
Stroniax
Stroniax3y ago
Extension methods for the common query plans, AutoMapper for reusable projection (replacing the .Select( with .ProjectTo< using preconfigured mappings).
Angius
Angius3y ago
Or abstract those long EF calls to a service or CQRS handler
Want results from more Discord servers?
Add your server