question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FindAsync without catch

See original GitHub issue

FindAsync currently catches CouchNotFoundException so it returns null in case that document is not found. I have mocked an implementation that is not using catch: https://github.com/n9/couchdb-net/commit/a877807c18274e75daef4450902b1083292f41c8. In case you would like me to pull-request it, let me know.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
matteobortolazzocommented, Feb 28, 2021

@n9 With Flurl 3 it’s finally possible

0reactions
matteobortolazzocommented, Mar 9, 2021

V3.0.0 released

Read more comments on GitHub >

github_iconTop Results From Across the Web

FindAsync with non-primary key value
1 Answer 1 ... Any way to do this lazily? ... @Sinjai: If you mean loading entity properties lazily, then no. EF doesn't...
Read more >
Turning off Tracking for Find and FindAsync in Entity Framework
Find/FindAsync is a popular way to retrieve a single entity using its primary key with Entity Framework, but by default Entity Framework ...
Read more >
How to write async await without try-catch blocks in Javascript
But the problem with await is that it will silently exit your function if no try-catch block was provided for it.
Read more >
FirstOrDefaultAsync() V.S. .FindAsync() for Details action ...
FindAsync - Finds an entity with the primary key (PK). If an entity with the PK is being tracked by the context, it's...
Read more >
DbContext.FindAsync Method
If an entity with the given primary key values is being tracked by the context, then it is returned immediately without making a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found