Skip to content

Commit 31311f5

Browse files
added FirstOrDefaultAsync
1 parent 2caad77 commit 31311f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

slo/src/EF/SloTableContext.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ await executeStrategy.ExecuteAsync(async () =>
7979
int readTimeout
8080
)
8181
{
82-
// await using var dbContext = client();
83-
// await dbContext.SloEntities
84-
// .FirstAsync(table => table.Guid == select.Guid && table.Id == select.Id);
82+
await using var dbContext = client();
83+
await dbContext.SloEntities.FirstOrDefaultAsync(
84+
table => table.Guid == select.Guid && table.Id == select.Id);
8585

8686
return (0, StatusCode.Success, null);
8787
}

0 commit comments

Comments
 (0)