Share via


SqlDatabaseTestAction Class

 

Represents a set of Transact-SQL batch statements and test conditions to validate whether the statement executed correctly.

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

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      Microsoft.Data.Tools.Schema.Sql.UnitTesting.SqlDatabaseTestAction

Syntax

public class SqlDatabaseTestAction : Component
public ref class SqlDatabaseTestAction : Component
type SqlDatabaseTestAction = 
    class
        inherit Component
    end
Public Class SqlDatabaseTestAction
    Inherits Component

Constructors

Name Description
System_CAPS_pubmethod SqlDatabaseTestAction()

Initializes a new instance of the SqlDatabaseTestAction class.

Properties

Name Description
System_CAPS_protproperty CanRaiseEvents

(Inherited from Component.)

System_CAPS_pubproperty Conditions

Gets the collection of test conditions that are associated with the set of Transact-SQL statements.

System_CAPS_pubproperty Container

(Inherited from Component.)

System_CAPS_protproperty DesignMode

(Inherited from Component.)

System_CAPS_protproperty Events

(Inherited from Component.)

System_CAPS_pubproperty Site

(Inherited from Component.)

System_CAPS_pubproperty SqlScript

Gets or sets a set of Transact-SQL database script statements.

Methods

Name Description
System_CAPS_pubmethod CreateObjRef(Type)

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethod Dispose()

(Inherited from Component.)

System_CAPS_protmethod Dispose(Boolean)

(Inherited from Component.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Component.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetLifetimeService()

(Inherited from MarshalByRefObject.)

System_CAPS_protmethod GetService(Type)

(Inherited from Component.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod InitializeLifetimeService()

(Inherited from MarshalByRefObject.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone(Boolean)

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethod ToString()

(Inherited from Component.)

Events

Name Description
System_CAPS_pubevent Disposed

(Inherited from Component.)

Remarks

This class represents set of Transact-SQL batch statements and a Conditions object, which is a collection of conditions that are used to evaluate the result sets that are generated by executing the batch statements.

In the simplest case, the SqlDatabaseTestAction is an actual Transact-SQL test. Instances of the SqlDatabaseTestAction are also included in the generated code so that you can modify the state of the database before or after each test execution. Or, you can use it as a verification mechanism.

The SqlDatabaseTestAction is a Component and is generated as a local variable inside the InitializeComponent method at design time. It is then assigned to a SqlDatabaseTestActions property.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

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

Return to top