Method | Description | |
---|---|---|
SafeClose ( this toClose, bool dispose = false ) : void |
A safe close routine for a database connection, which can also dispose the connection, if required.
|
public static SafeClose ( this toClose, bool dispose = false ) : void | ||
toClose | this | the connection to close |
dispose | bool | if set to true, it will also dispose the connection. |
return | void |