SqlDatabaseTestClass.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.Tools.Schema.Sql.UnitTesting
Assembly:  Microsoft.Data.Tools.Schema.Sql.UnitTesting (in Microsoft.Data.Tools.Schema.Sql.UnitTesting.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Protected Property ExecutionContext As ConnectionContext 
    Get 
    Set
'Usage
Dim value As ConnectionContext 

value = Me.ExecutionContext 

Me.ExecutionContext = value
[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.Tools.Schema.Sql.UnitTesting.ConnectionContext
A ConnectionContext object.

Remarks

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

See Also

Reference

SqlDatabaseTestClass Class

Microsoft.Data.Tools.Schema.Sql.UnitTesting Namespace

ConnectionContext

InitializeTest

CleanupTest