barakcaf
barakcaf

Reputation: 1324

default timeout for providerName="System.Data.EntityClient"

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

Upvotes: 4

Views: 1416

Answers (1)

Henrik
Henrik

Reputation: 633

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

Upvotes: 6

Related Questions