Click or drag to resize

TraceableSqlCommand Class

Traceable wrapper of SqlCommand. Currently synchronized and asynchronized call are traced, which includes ExecuteNonQuery, ExecuteReader, ExecuteScalar and ExecuteXmlReader.
Inheritance Hierarchy

Namespace:  Amazon.XRay.Recorder.Handlers.SqlServer
Assembly:  AWSXRayRecorder.Handlers.SqlServer (in AWSXRayRecorder.Handlers.SqlServer.dll) Version: 2.11.0+018bfa65877dd72e346735bad4d7ad46f217da09
Syntax
C#
public class TraceableSqlCommand : DbCommand, 
	ICloneable

The TraceableSqlCommand type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCommandText
Gets or sets the text command to run against the data source.
(Overrides DbCommandCommandText.)
Public propertyCommandTimeout
Gets or sets the wait time before terminating the attempt to execute a command and generating an error.
(Overrides DbCommandCommandTimeout.)
Public propertyCommandType
Indicates or specifies how the CommandText property is interpreted.
(Overrides DbCommandCommandType.)
Public propertyConnection
Gets or sets the DbConnection used by this DbCommand.
Protected propertyDbConnection
Gets or sets the DbConnection used by this DbCommand.
(Overrides DbCommandDbConnection.)
Protected propertyDbParameterCollection
Gets the collection of DbParameter objects.
(Overrides DbCommandDbParameterCollection.)
Protected propertyDbTransaction
Gets or sets the DbTransaction within which this DbCommand object executes.
(Overrides DbCommandDbTransaction.)
Public propertyDesignTimeVisible
Gets or sets a value indicating whether the command object should be visible in a customized interface control.
(Overrides DbCommand.DesignTimeVisible.)
Public propertyInnerSqlCommand
Gets the inner SQL command.
Public propertyNotification
Gets or sets a value that specifies the System.Data.Sql.SqlNotificationRequest object bound to this command.
Public propertyNotificationAutoEnlist
Gets or sets a value indicating whether the application should automatically receive query notifications from a common System.Data.SqlClient.SqlDependency object.
Public propertyParameters
Gets the collection of SqlParameter objects.
Public propertyTransaction
Gets or sets the SqlTransaction within which this SqlCommand object executes.
Public propertyUpdatedRowSource
Gets or sets how command results are applied to the DataRow when used by the Update method of a DbDataAdapter.
(Overrides DbCommandUpdatedRowSource.)
Top
Methods
  NameDescription
Public methodBeginExecuteNonQuery
Begins the execute non query. Wrapper of the same function in SqlCommand.
Public methodBeginExecuteNonQuery(AsyncCallback, Object)
Begins the execute non query. Wrapper of the same function in SqlCommand.
Public methodBeginExecuteReader
Begins the execute reader. Wrapper of the same function in SqlCommand.
Public methodBeginExecuteReader(CommandBehavior)
Begins the execute reader. Wrapper of the same function in SqlCommand.
Public methodBeginExecuteReader(AsyncCallback, Object)
Begins the execute reader. Wrapper of the same function in SqlCommand.
Public methodBeginExecuteReader(AsyncCallback, Object, CommandBehavior)
Begins the execute reader. Wrapper of the same function in SqlCommand.
Public methodBeginExecuteXmlReader
Begins the execute XML reader. Wrapper of the same function in SqlCommand.
Public methodBeginExecuteXmlReader(AsyncCallback, Object)
Begins the execute XML reader. Wrapper of the same function in SqlCommand.
Public methodCancel
Attempts to cancels the execution of a SqlCommand.
(Overrides DbCommandCancel.)
Public methodClone
Clones this instance.
Protected methodCreateDbParameter
Creates a new instance of a DbParameter object. Wrapper of the same function in SqlCommand.
(Overrides DbCommandCreateDbParameter.)
Public methodCreateParameter
Creates the parameter. Wrapper of the same function in SqlCommand.
Public methodEndExecuteNonQuery
Ends the execute non query. Wrapper of the same function in SqlCommand.
Public methodEndExecuteReader
Ends the execute reader. Wrapper of the same function in SqlCommand.
Public methodEndExecuteXmlReader
Ends the execute XML reader. Wrapper of the same function in SqlCommand.
Protected methodExecuteDbDataReader
Executes the command text against the connection. Wrapper of the same function in SqlCommand.
(Overrides DbCommandExecuteDbDataReader(CommandBehavior).)
Public methodExecuteNonQuery
Executes a SQL statement against a connection object. Wrapper of the same function in SqlCommand.
(Overrides DbCommandExecuteNonQuery.)
Public methodExecuteNonQueryAsync
This is the asynchronous version of ExecuteNonQuery. Providers should override with an appropriate implementation. The cancellation token may optionally be ignored.The default implementation invokes the synchronous ExecuteNonQuery method and returns a completed task, blocking the calling thread. The default implementation will return a cancelled task if passed an already cancelled cancellation token. Exceptions thrown by ExecuteNonQuery will be communicated via the returned Task Exception property.Do not invoke other methods and properties of the DbCommand object until the returned Task is complete. Wrapper of the same function in SqlCommand.
(Overrides DbCommandExecuteNonQueryAsync(CancellationToken).)
Public methodExecuteReader
Executes the reader. Wrapper of the same function in SqlCommand.
Public methodExecuteReader(CommandBehavior)
Executes the reader. Wrapper of the same function in SqlCommand.
Public methodExecuteReaderAsync
Executes the reader asynchronous. Wrapper of the same function in SqlCommand.
Public methodExecuteReaderAsync(CancellationToken)
Executes the reader asynchronous. Wrapper of the same function in SqlCommand.
Public methodExecuteReaderAsync(CommandBehavior)
Executes the reader asynchronous. Wrapper of the same function in SqlCommand.
Public methodExecuteReaderAsync(CommandBehavior, CancellationToken)
Executes the reader asynchronous. Wrapper of the same function in SqlCommand.
Public methodExecuteScalar
Executes the query and returns the first column of the first row in the result set returned by the query. All other columns and rows are ignored. Wrapper of the same function in SqlCommand.
(Overrides DbCommandExecuteScalar.)
Public methodExecuteScalarAsync
This is the asynchronous version of ExecuteScalar. Providers should override with an appropriate implementation. The cancellation token may optionally be ignored.The default implementation invokes the synchronous ExecuteScalar method and returns a completed task, blocking the calling thread. The default implementation will return a cancelled task if passed an already cancelled cancellation token. Exceptions thrown by ExecuteScalar will be communicated via the returned Task Exception property.Do not invoke other methods and properties of the DbCommand object until the returned Task is complete. Wrapper of the same function in SqlCommand.
(Overrides DbCommandExecuteScalarAsync(CancellationToken).)
Public methodExecuteXmlReader
Executes the XML reader. Wrapper of the same function in SqlCommand.
Public methodExecuteXmlReaderAsync
Executes the XML reader asynchronous. Wrapper of the same function in SqlCommand.
Public methodExecuteXmlReaderAsync(CancellationToken)
Executes the XML reader asynchronous. Wrapper of the same function in SqlCommand.
Public methodPrepare
Creates a prepared (or compiled) version of the command on the data source. Wrapper of the same function in SqlCommand.
(Overrides DbCommandPrepare.)
Public methodResetCommandTimeout
Resets the command timeout. Wrapper of the same function in SqlCommand.
Top
Events
  NameDescription
Public eventStatementCompleted
Occurs when the execution of a Transact-SQL statement completes.
Top
See Also