Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 771 Bytes

File metadata and controls

23 lines (16 loc) · 771 Bytes

ConnectionExtensions.SetCommandTimeout method

namespace: Serenity.Data   assemblySerenity.Net.Data

Sets the default command timeout for given connection. Only works with IHasCommandTimeout (WrappedConnection) instances, which are usually created by SqlConnections.NewXyz methods.

public static void SetCommandTimeout(this IDbConnection connection, int? timeout)
parameter description
connection The connection.
timeout The timeout value.

Exceptions

exception condition
ArgumentOutOfRangeException Connection is not a WrappedConnection.

See Also