Johan Johan - 1 year ago 192
C# Question

Default Entity Framework timeout

What is the default timeout for EF queries? I've tried to find out by checking

, but it returns

I have also looked in the web config in the connection string for something like
Connect Timeout=
, but it doesn't seem to be there by default.

Answer Source

The default timeout for object queries and the SaveChanges operation is defined by the underlying connection provider. Since Entity Framework can be used for many connection providers, mysql, sql server etc. and all have different default timeout's!

So null means default timeout will be used, if you want to know what is the default then it depends on the connection provider you are using!