This class represents the actual preparation and execution of a command.
Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ExecutionEventArgs" /> class.
        /// </summary>
        /// <param name="executionDetails">The execution details.</param>
        /// <param name="startTime">The start time.</param>
        /// <param name="state">User defined state, usually used for logging.</param>
        /// <exception cref="ArgumentNullException">executionDetails;executionDetails is null.</exception>
        public ExecutionEventArgs(ExecutionToken executionDetails, DateTimeOffset startTime, object state)
        {
            if (executionDetails == null)
                throw new ArgumentNullException("executionDetails", "executionDetails is null.");

            ExecutionDetails = executionDetails;
            StartTime = startTime;
            State = state;
        }
Exemple #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ExecutionEventArgs" /> class.
        /// </summary>
        /// <param name="executionDetails">The execution details.</param>
        /// <param name="startTime">The start time.</param>
        /// <param name="endTime">The end time.</param>
        /// <param name="rowsAffected">The number of rows affected.</param>
        /// <param name="state">User defined state, usually used for logging.</param>
        /// <exception cref="ArgumentNullException">executionDetails;executionDetails is null.</exception>
        public ExecutionEventArgs(ExecutionToken executionDetails, DateTimeOffset startTime, DateTimeOffset endTime, int? rowsAffected, object state)
        {
            if (executionDetails == null)
                throw new ArgumentNullException("executionDetails", "executionDetails is null.");

            StartTime = startTime;
            EndTime = endTime;
            RowsAffected = rowsAffected;
            State = state;
            ExecutionDetails = executionDetails;
        }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandBuiltEventArgs" /> class.
 /// </summary>
 /// <param name="executionToken">The execution token.</param>
 public ExecutionTokenPreparedEventArgs(ExecutionToken executionToken)
 {
     ExecutionToken = executionToken;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandBuiltEventArgs" /> class.
 /// </summary>
 /// <param name="executionToken">The execution token.</param>
 public ExecutionTokenPreparedEventArgs(ExecutionToken executionToken)
 {
     ExecutionToken = executionToken;
 }