SqlClient CommandTimeout Property Nemiro.Data.dll
Timeout command (in seconds). The default value is 30 seconds.

Namespace: Nemiro.Data.Sql
Assembly: Nemiro.Data (in Nemiro.Data.dll) Version: 2.11.4.126 (2.11.4.126)
Syntax

public int CommandTimeout { get; set; }

Property Value

Type: Int32
Examples

using (SqlClient client = new SqlClient())
{
  client.CommandText = "WAITFOR DELAY '00:00:05'";
  client.CommandTimeout = 1;
  client.ExecuteNonQuery();
}
See Also