dotnet / dotnet/efcore

Consider WithQueryTimeout through linq

Open
#29,804 5 comments 0 reactions 0 assignees View on GitHub
area-query customer-reported
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

We are trying to migrate ef core 7 from NHibernate. Consider allow us to specify custom timeouts for specific linq statements.

Suggested extension methods could be like below.

"context.Set().WithQueryTimeout(100)"

Is there any way to specify timeout(in seconds) through linq not "context.Database" property.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.