C# Class PRI.ProductivityExtensions.IDbConnectionExtensions.IDbConnectionable

Exibir arquivo Open project: peteraritchie/ProductivityExtensions

Public Methods

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.

Method Details

SafeClose() public static method

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