مشاركة عبر


BusinessLogicCommand Class

Represents a business logic command.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Replication.BusinessLogicSupport.BusinessLogicCommand

Namespace:  Microsoft.SqlServer.Replication.BusinessLogicSupport
Assembly:  Microsoft.SqlServer.Replication.BusinessLogicSupport (in Microsoft.SqlServer.Replication.BusinessLogicSupport.dll)

Syntax

'Declaration
Public Class BusinessLogicCommand _
    Implements IDbCommand, IDisposable
'Usage
Dim instance As BusinessLogicCommand
public class BusinessLogicCommand : IDbCommand, 
    IDisposable
public ref class BusinessLogicCommand : IDbCommand, 
    IDisposable
type BusinessLogicCommand =  
    class 
        interface IDbCommand 
        interface IDisposable 
    end
public class BusinessLogicCommand implements IDbCommand, IDisposable

The BusinessLogicCommand type exposes the following members.

Constructors

  Name Description
Public method BusinessLogicCommand() Initializes a new instance of the BusinessLogicCommand class.
Public method BusinessLogicCommand(String) Initializes a new instance of the BusinessLogicCommand class.
Public method BusinessLogicCommand(BusinessLogicConnection) Initializes a new instance of the BusinessLogicCommand class.
Public method BusinessLogicCommand(BusinessLogicConnection, TempDBResultSet) Initializes a new instance of the BusinessLogicCommand class.
Public method BusinessLogicCommand(String, BusinessLogicConnection, BusinessLogicTransaction) Initializes a new instance of the BusinessLogicCommand class.

Top

Properties

  Name Description
Public property CommandText Gets or sets the text command to run against the data source.
Public property CommandTimeout Gets or sets the time in seconds to wait for the command to execute.
Public property CommandType Gets or sets the command type.
Public property Connection Gets or sets the connection to the data source.
Public property Parameters Gets the collection of business logic parameters.
Public property Transaction Gets or sets the transaction within which the command executes.
Public property UpdatedRowSource Gets or sets the updated row source.

Top

Methods

  Name Description
Public method Cancel Cancels the execution of a BusinessLogicCommand.
Public method CreateParameter Creates a new instance of an IDbDataParameter object.
Public method Dispose Releases all resources used by the current instance of the BusinessLogicCommand.
Public method Equals (Inherited from Object.)
Public method ExecuteNonQuery Executes a statement against a connection object.
Public method ExecuteReader() Executes the CommandText against the Connection, and returns an IDataReader.
Public method ExecuteReader(CommandBehavior) Executes the CommandText against the Connection, and returns an IDataReader using one of the CommandBehavior.
Public method ExecuteScalar Executes the query and returns the first column of the first row in the result set returned by the query.
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Prepare Creates a prepared version of the command on the data source.
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate property IDbCommand.Parameters Gets the IDataParameterCollection.

Top

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

Reference

Microsoft.SqlServer.Replication.BusinessLogicSupport Namespace