4

I'm trying to figure what's the default value for the ObjectContext.CommandTimeout (in System.Data.Entity.dll) property for providerName="System.Data.EntityClient"?

tnx

Henrik
  • 613
  • 4
  • 11
barakcaf
  • 1,294
  • 2
  • 16
  • 27
  • possible duplicate of [Increasing the Command Timeout for SQL command](http://stackoverflow.com/questions/18440130/increasing-the-command-timeout-for-sql-command) – Philip Stuyck May 17 '15 at 08:53

1 Answers1

6

When setting ObjectContext.CommandTimeout to null or not setting it, the default value of the underlying provider will be used.

MSDN: ObjectContext.CommandTimeout Property

The default timeout for SQL Server is 30 seconds.

MSDN: SqlCommand.CommandTimeout Property

Henrik
  • 613
  • 4
  • 11