/// <summary>
        /// Add a command for execution.
        /// </summary>
        /// <param name="commandContext">Command to be executed.</param>
        public void AddCommand(IDbCommandContext commandContext)
        {
            ThrowIfDisposed();

            if (commandContext != null)
            {
                _cmdList.Add(commandContext);
            }
        }
Exemplo n.º 2
0
 public long Execute(IDbCommandContext context)
 {
     return(context.Execute(sql, this.productReport));
 }
Exemplo n.º 3
0
 public CommandInvoker(IDbCommandContext dbContext)
 {
     this.dbContext = dbContext;
 }