Class ProtoSqlSession

Namespace
ProtoTest.Sql
Assembly
ProtoTest.Sql.dll

The per-test database session: the connection ProtoTest owns and, when the isolation strategy needs one, the transaction every access technology must enlist in.

public sealed class ProtoSqlSession
Inheritance
ProtoSqlSession
Inherited Members
Extension Methods

Properties

Connection

Gets the connection owned by this test.

public DbConnection Connection { get; }

Property Value

DbConnection

Transaction

Gets the test's transaction, or null when isolation is None.

public DbTransaction? Transaction { get; }

Property Value

DbTransaction