What is the default timeout for EF queries? I’ve tried to find out by checking context.CommandTimeout, but it returns null.
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.
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
nullmeans default timeout will be used, if you want to know what is the default then it depends on the connection provider you are using!