C# 클래스 Castle.ActiveRecord.Testing.InMemoryConnectionProvider

ConnectionProvider for Sqlite in memory tests, that suppresses closing the connection to keep the data until the test is finished.
상속: NHibernate.Connection.DriverConnectionProvider
파일 보기 프로젝트 열기: shosca/ActiveRecord 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Connection IDbConnection

공개 메소드들

메소드 설명
CloseConnection ( IDbConnection conn ) : void

No-Op.

GetConnection ( ) : IDbConnection

Called by the framework.

Restart ( ) : void

Closes the connection after the tests.

메소드 상세

CloseConnection() 공개 메소드

No-Op.
public CloseConnection ( IDbConnection conn ) : void
conn IDbConnection The connection to close.
리턴 void

GetConnection() 공개 메소드

Called by the framework.
public GetConnection ( ) : IDbConnection
리턴 IDbConnection

Restart() 공개 정적인 메소드

Closes the connection after the tests.
public static Restart ( ) : void
리턴 void

프로퍼티 상세

Connection 공개적으로 정적으로 프로퍼티

The connection to the database
public static IDbConnection Connection
리턴 IDbConnection