Peter Gfader's brain noise
Bad API. SQLCommand.CommandTimeout doesn’t say in which time unit.
You can find the details in the help file
public override int CommandTimeout { set; get; }
    Member of System.Data.SqlClient.SqlCommand

Summary:
Gets or sets the wait time before terminating the attempt to execute a command and generating an error.

Returns:
The time in seconds to wait for the command to execute. The default is 30 seconds.


Better would be to name it: CommandTimeoutSeconds

Bad API. SQLCommand.CommandTimeout doesn’t say in which time unit.

You can find the details in the help file

public override int CommandTimeout { set; get; }

    Member of System.Data.SqlClient.SqlCommand

Summary:

Gets or sets the wait time before terminating the attempt to execute a command and generating an error.

Returns:

The time in seconds to wait for the command to execute. The default is 30 seconds.

Better would be to name it: CommandTimeoutSeconds

Blog comments powered by Disqus