Share via


DatabaseTestService.Execute Method

Executes the supplied DatabaseTestAction and evaluates the results of the execution using each TestCondition contained in the DatabaseTestAction's Conditions collection.

Namespace:  Microsoft.VisualStudio.TeamSystem.Data.UnitTesting
Assembly:  Microsoft.VisualStudio.TeamSystem.Data.UnitTesting (in Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.dll)

Syntax

'Declaration
Public Overridable Function Execute ( _
    scriptExecutionContext As ConnectionContext, _
    privilegedExecutionContext As ConnectionContext, _
    action As DatabaseTestAction, _
    ParamArray sqlParameters As DbParameter() _
) As ExecutionResult()
'Usage
Dim instance As DatabaseTestService
Dim scriptExecutionContext As ConnectionContext
Dim privilegedExecutionContext As ConnectionContext
Dim action As DatabaseTestAction
Dim sqlParameters As DbParameter()
Dim returnValue As ExecutionResult()

returnValue = instance.Execute(scriptExecutionContext, _
    privilegedExecutionContext, action, _
    sqlParameters)
public virtual ExecutionResult[] Execute(
    ConnectionContext scriptExecutionContext,
    ConnectionContext privilegedExecutionContext,
    DatabaseTestAction action,
    params DbParameter[] sqlParameters
)
public:
virtual array<ExecutionResult^>^ Execute(
    ConnectionContext^ scriptExecutionContext, 
    ConnectionContext^ privilegedExecutionContext, 
    DatabaseTestAction^ action, 
    ... array<DbParameter^>^ sqlParameters
)
public function Execute(
    scriptExecutionContext : ConnectionContext, 
    privilegedExecutionContext : ConnectionContext, 
    action : DatabaseTestAction, 
    ... sqlParameters : DbParameter[]
) : ExecutionResult[]

Parameters

Return Value

Type: array<Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.ExecutionResult[]

Permissions

See Also

Reference

DatabaseTestService Class

DatabaseTestService Members

Microsoft.VisualStudio.TeamSystem.Data.UnitTesting Namespace