Table of Contents

Class MsSqlConnectHelper

Namespace
SunamoMsSqlServer.Helpers
Assembly
SunamoMsSqlServer.dll

Provides helper methods for opening and closing SQL Server connections.

public class MsSqlConnectHelper
Inheritance
MsSqlConnectHelper
Inherited Members
Extension Methods

Methods

Close(SqlConnection)

Closes the SQL connection if it is not already closed.

public static Task Close(SqlConnection connection)

Parameters

connection SqlConnection

The SQL connection to close.

Returns

Task

A task representing the asynchronous operation.

Open(SqlConnection)

Opens the SQL connection if it is not already open.

public static Task Open(SqlConnection connection)

Parameters

connection SqlConnection

The SQL connection to open.

Returns

Task

A task representing the asynchronous operation.