I\'m using Entity Framework 5 and I wish to know the command timeout value.
In order to do so, I cast the dbContext object to an ObjectContext
dbContext
ObjectContext
This is how I do it.
ObjectContext objectContext = ((IObjectContextAdapter)dbContext).ObjectContext int commandTimeout = objectContext.CommandTimeout ?? objectContext.Connection.CreateCommand().CommandTimeout;