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

1

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.