Mic Got

Mic Got

  • 1.6k
  • 100
  • 8k

DbContext timeout connection

Jun 15 2023 9:55 AM

Hi,

I have an apllication that load a table in a list with dbcontext class.

The problem is the connection timeout, this is the error:

Microsoft.Data.SqlClient.SqlException: 'Execution Timeout Expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.'

The view that load data in sql server have an elapsed time of 9 minutes so how can i increase the timeout in ef core 6?

Thanks to everyone.

 
 


Answers (3)