Gets or sets the timeout value, in seconds, for all object context operations. A null value indicates that the default value of the underlying provider will be used.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
The default timeout for object queries and the SaveChanges operation is defined by the underlying connection provider. However, you can override this default timeout value by using the property on the ObjectContext, as shown in the following example.
// Specify a timeout for queries in this context, in seconds. context.CommandTimeout = 120;
Do this when you have a complex query or when other performance issues cause queries or calls to SaveChanges to time out frequently.
Available since 3.5