Partilhar via


Método DatabaseTestService.Execute

Executa o fornecido DatabaseTestAction e avalia os resultados da execução usando cada TestCondition que está contida na Conditions coleção.

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

Sintaxe

'Declaração
Public Overridable Function Execute ( _
    scriptExecutionContext As ConnectionContext, _
    privilegedExecutionContext As ConnectionContext, _
    action As DatabaseTestAction, _
    ParamArray sqlParameters As DbParameter() _
) As ExecutionResult()
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
)
abstract Execute : 
        scriptExecutionContext:ConnectionContext * 
        privilegedExecutionContext:ConnectionContext * 
        action:DatabaseTestAction * 
        sqlParameters:DbParameter[] -> ExecutionResult[] 
override Execute : 
        scriptExecutionContext:ConnectionContext * 
        privilegedExecutionContext:ConnectionContext * 
        action:DatabaseTestAction * 
        sqlParameters:DbParameter[] -> ExecutionResult[] 
public function Execute(
    scriptExecutionContext : ConnectionContext, 
    privilegedExecutionContext : ConnectionContext, 
    action : DatabaseTestAction, 
    ... sqlParameters : DbParameter[]
) : ExecutionResult[]

Parâmetros

Valor de retorno

Tipo: array<Microsoft.Data.Schema.UnitTesting.ExecutionResult[]
Uma matriz de ExecutionResult objetos.

Segurança do .NET Framework

Consulte também

Referência

DatabaseTestService Classe

Namespace Microsoft.Data.Schema.UnitTesting

SqlScript

DatabaseTestAction

DbParameters

ExecutionResult