Default Entity Framework timeout

c# entity-framework orm

Question

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.

1
12
3/23/2014 10:57:17 AM

Accepted Answer

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!

13
11/30/2012 2:58:54 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow