Share via


DatabaseTestClass.ExecutionContext Property

Gets or sets the execution context that is used to execute the Transact-SQL script that is associated with a test.

Namespace:  Microsoft.Data.Schema.UnitTesting
Assembly:  Microsoft.Data.Schema.UnitTesting (in Microsoft.Data.Schema.UnitTesting.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Protected Property ExecutionContext As ConnectionContext
[BrowsableAttribute(false)]
protected ConnectionContext ExecutionContext { get; set; }
[BrowsableAttribute(false)]
protected:
property ConnectionContext^ ExecutionContext {
    ConnectionContext^ get ();
    void set (ConnectionContext^ value);
}
[<BrowsableAttribute(false)>]
member ExecutionContext : ConnectionContext with get, set
function get ExecutionContext () : ConnectionContext
function set ExecutionContext (value : ConnectionContext)

Property Value

Type: Microsoft.Data.Schema.UnitTesting.ConnectionContext
A ConnectionContext object.

Remarks

This property is populated when InitializeTest is called. This property is cleared when CleanupTest is called.

.NET Framework Security

See Also

Reference

DatabaseTestClass Class

Microsoft.Data.Schema.UnitTesting Namespace

ConnectionContext

InitializeTest

CleanupTest