C# Class Castle.ActiveRecord.Testing.InMemoryConnectionProvider

ConnectionProvider for Sqlite in memory tests, that suppresses closing the connection to keep the data until the test is finished.
Inheritance: NHibernate.Connection.DriverConnectionProvider
Afficher le fichier Open project: shosca/ActiveRecord Class Usage Examples

Méthodes publiques

Свойство Type Description
Connection IDbConnection

Méthodes publiques

Méthode Description
CloseConnection ( IDbConnection conn ) : void

No-Op.

GetConnection ( ) : IDbConnection

Called by the framework.

Restart ( ) : void

Closes the connection after the tests.

Method Details

CloseConnection() public méthode

No-Op.
public CloseConnection ( IDbConnection conn ) : void
conn IDbConnection The connection to close.
Résultat void

GetConnection() public méthode

Called by the framework.
public GetConnection ( ) : IDbConnection
Résultat IDbConnection

Restart() public static méthode

Closes the connection after the tests.
public static Restart ( ) : void
Résultat void

Property Details

Connection public_oe static_oe property

The connection to the database
public static IDbConnection Connection
Résultat IDbConnection