Example #1
0
        /// <summary>
        /// Appends the contents of another command.
        /// </summary>
        public void Append(PersistenceCommand command)
        {
            OnAppend(command);

            // Append all parameters. This will cause an exception if a parameter with the same name already exists.
            foreach (PersistenceParameter param in command.Parameters.Values)
            {
                this.Parameters.Add(param.Name, param.Clone());
            }
        }
Example #2
0
 protected abstract void OnAppend(PersistenceCommand command);
        //public Action InboundRowReceived { get; set; }

        protected PersistenceAdapter(PersistenceConnection connection, PersistenceCommand command)
        {
            this.Connection = connection;
            this.Command    = command;
        }