© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Await inside a repository for a SELECT request - C#
C
C#
•
4y ago
•
4 replies
W1tchErr
Await inside a repository for a SELECT request
I was looking at the
blazor hero
template and in the repository implementation they used
await
await
for
FindAsync
FindAsync
,
ToListAsync
ToListAsync
, etc
. I can
't understand why they can
't just return the
Task
Task
from these methods
? Is it right to await a response from the DB inside the repository
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
62,470
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
✅ Combining a List inside of a Select
C
C# / help
3y ago
✅ Await seemingly ignored inside Dispatcher.BeginInvoke
C
C# / help
4y ago
Building a generic repository for mongodb
C
C# / help
3y ago
✅ await await ContinueWith
C
C# / help
10mo ago